mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
ensure unload run with old pipeline as currently-active, do not nullify proxy unless currently-active
This commit is contained in:
parent
d553158e95
commit
a21c0bfd1a
3 changed files with 14 additions and 3 deletions
|
@ -3118,7 +3118,8 @@ impl ScriptThread {
|
|||
opener: Option<BrowsingContextId>,
|
||||
) -> DomRoot<WindowProxy> {
|
||||
if let Some(window_proxy) = self.window_proxies.borrow().get(&browsing_context_id) {
|
||||
window_proxy.set_currently_active(&*window);
|
||||
// Note: we do not set the window to be the currently-active one,
|
||||
// this will be done instead when the script-thread handles the `SetDocumentActivity` msg.
|
||||
return DomRoot::from_ref(window_proxy);
|
||||
}
|
||||
let iframe = parent_info.and_then(|parent_id| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue