diff options
Diffstat (limited to 'components/constellation/constellation.rs')
-rw-r--r-- | components/constellation/constellation.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 5aaf8bf5d8c..e01dc7e76ef 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -1085,9 +1085,12 @@ where let (event_loop, host) = match sandbox { IFrameSandboxState::IFrameSandboxed => (None, None), IFrameSandboxState::IFrameUnsandboxed => { - // If this is an about:blank load, it must share the creator's event loop. - // This must match the logic in the script thread when determining the proper origin. - if load_data.url.as_str() != "about:blank" { + // If this is an about:blank or about:srcdoc load, it must share the creator's + // event loop. This must match the logic in the script thread when determining + // the proper origin. + if load_data.url.as_str() != "about:blank" && + load_data.url.as_str() != "about:srcdoc" + { match reg_host(&load_data.url) { None => (None, None), Some(host) => { |