mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Fixing issue #16057
This commit is contained in:
parent
5dce166266
commit
11fb9db7bf
1 changed files with 7 additions and 0 deletions
|
@ -1652,6 +1652,13 @@ impl ScriptThread {
|
|||
let load = self.incomplete_loads.borrow_mut().remove(idx);
|
||||
load.layout_chan.clone()
|
||||
} else if let Some(document) = self.documents.borrow_mut().remove(id) {
|
||||
// We don't want to dispatch `mouseout` event pointing to non-existing element
|
||||
if let Some(target) = self.topmost_mouse_over_target.get() {
|
||||
if target.upcast::<Node>().owner_doc() == document {
|
||||
self.topmost_mouse_over_target.set(None);
|
||||
}
|
||||
}
|
||||
|
||||
let window = document.window();
|
||||
if discard_bc == DiscardBrowsingContext::Yes {
|
||||
window.window_proxy().discard_browsing_context();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue