Bug 849496 - crash in mozilla::a11y::DocManager::RemoveListeners, r=tbsaunde

This commit is contained in:
Alexander Surkov 2013-03-13 15:23:28 +09:00
parent f6d15ab18e
commit a9108da6fd

View File

@ -352,6 +352,9 @@ void
DocManager::RemoveListeners(nsIDocument* aDocument)
{
nsPIDOMWindow* window = aDocument->GetWindow();
if (!window)
return;
nsIDOMEventTarget* target = window->GetChromeEventHandler();
nsEventListenerManager* elm = target->GetListenerManager(true);
elm->RemoveEventListenerByType(this, NS_LITERAL_STRING("pagehide"),