diff options
author | Josh Matthews <josh@joshmatthews.net> | 2023-05-20 18:32:08 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2023-05-20 18:32:08 -0400 |
commit | dcf02caf81284246d8fd6ee4a09161733bd9310a (patch) | |
tree | e30fa09b9dcbab8d94f98a2178cb495f4d6b4542 /components/script/dom/servoparser/mod.rs | |
parent | 02a280dbe1f545a20500235842038851260b03d2 (diff) | |
download | servo-dcf02caf81284246d8fd6ee4a09161733bd9310a.tar.gz servo-dcf02caf81284246d8fd6ee4a09161733bd9310a.zip |
Enter realms when creating special same-origin iframes.
Diffstat (limited to 'components/script/dom/servoparser/mod.rs')
-rw-r--r-- | components/script/dom/servoparser/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs index 6b5df0e9768..c4b52a038ea 100644 --- a/components/script/dom/servoparser/mod.rs +++ b/components/script/dom/servoparser/mod.rs @@ -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(_) => (), |