mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Allow browsing contexts to resolve to cross-origin windows.
This commit is contained in:
parent
4a0b730caf
commit
e8d765557f
11 changed files with 598 additions and 16 deletions
|
@ -1678,7 +1678,7 @@ impl ScriptThread {
|
|||
},
|
||||
hash_map::Entry::Occupied(entry) => {
|
||||
let browsing_context = entry.get();
|
||||
browsing_context.set_window_proxy(&window);
|
||||
browsing_context.set_currently_active(&*window);
|
||||
window.init_browsing_context(browsing_context);
|
||||
},
|
||||
}
|
||||
|
@ -1782,7 +1782,9 @@ impl ScriptThread {
|
|||
ServoParser::parse_html_document(&document, parse_input, final_url);
|
||||
}
|
||||
|
||||
if incomplete.activity != DocumentActivity::FullyActive {
|
||||
if incomplete.activity == DocumentActivity::FullyActive {
|
||||
window.resume();
|
||||
} else {
|
||||
window.suspend();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue