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

@ -919,6 +919,7 @@ impl FetchResponseListener for ParserContext {
if parser.aborted.get() {
return;
}
let _realm = enter_realm(&*parser);
parser.parse_bytes_chunk(payload);
}
@ -934,6 +935,8 @@ impl FetchResponseListener for ParserContext {
return;
}
let _realm = enter_realm(&*parser);
match status {
// are we throwing this away or can we use it?
Ok(_) => (),