Revert one (mismatched) line within patch to bug 300864 to fix massive leak. b=330624 r=aaronl sr=bryner

This commit is contained in:
dbaron%dbaron.org 2006-04-05 23:04:02 +00:00
parent 9af2623023
commit 04873704c4

View File

@ -571,7 +571,7 @@ NS_IMETHODIMP nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
return NS_OK;
}
if (eventType.LowerCaseEqualsLiteral("unload")) {
if (eventType.LowerCaseEqualsLiteral("pagehide")) {
// Only get cached accessible for pagehide -- so that we don't create it
// just to destroy it.
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(eventShell));