mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 881504 - Fix crash in mozilla::a11y::DocManager::RemoveListeners, r=surkov
This commit is contained in:
parent
a592b59f7b
commit
0faa00ba92
@ -355,6 +355,9 @@ DocManager::RemoveListeners(nsIDocument* aDocument)
|
||||
return;
|
||||
|
||||
EventTarget* target = window->GetChromeEventHandler();
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
nsEventListenerManager* elm = target->GetListenerManager(true);
|
||||
elm->RemoveEventListenerByType(this, NS_LITERAL_STRING("pagehide"),
|
||||
dom::TrustedEventsAtCapture());
|
||||
|
Loading…
Reference in New Issue
Block a user