mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #27505 - utsavoza:ugo/issue-24718/05-08-2020, r=jdm
Do not load srcdoc iframes synchronously - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24718 - [x] There are tests for these changes
This commit is contained in:
commit
d028d71fe9
8 changed files with 26 additions and 20 deletions
|
@ -1082,9 +1082,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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue