aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2023-05-20 18:32:08 -0400
committerJosh Matthews <josh@joshmatthews.net>2023-05-20 18:32:08 -0400
commitdcf02caf81284246d8fd6ee4a09161733bd9310a (patch)
treee30fa09b9dcbab8d94f98a2178cb495f4d6b4542 /components/script/script_thread.rs
parent02a280dbe1f545a20500235842038851260b03d2 (diff)
downloadservo-dcf02caf81284246d8fd6ee4a09161733bd9310a.tar.gz
servo-dcf02caf81284246d8fd6ee4a09161733bd9310a.zip
Enter realms when creating special same-origin iframes.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs1
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();