Enter realms when creating special same-origin iframes.

This commit is contained in:
Josh Matthews 2023-05-20 18:32:08 -04:00
parent 02a280dbe1
commit dcf02caf81
2 changed files with 4 additions and 0 deletions

View file

@ -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();