Bug 881504 - Fix crash in mozilla::a11y::DocManager::RemoveListeners, r=surkov

This commit is contained in:
Birunthan Mohanathas 2013-06-25 08:22:00 +02:00
parent a592b59f7b
commit 0faa00ba92

View File

@ -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());