diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 325944d33c2..96ea03881d4 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1649,6 +1649,7 @@ impl ScriptThread { // https://html.spec.whatwg.org/multipage/#the-end step 6 let mut docs = self.docs_with_no_blocking_loads.borrow_mut(); for document in docs.iter() { + let _realm = enter_realm(&**document); document.maybe_queue_document_completion(); } docs.clear(); |