mirror of
https://github.com/servo/servo
synced 2026-04-27 18:07:52 +02:00
Allow browsing contexts to resolve to cross-origin windows.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user