diff --git a/content/events/src/nsEventListenerManager.cpp b/content/events/src/nsEventListenerManager.cpp index 25ae073f1330..b84053613302 100644 --- a/content/events/src/nsEventListenerManager.cpp +++ b/content/events/src/nsEventListenerManager.cpp @@ -1346,11 +1346,6 @@ nsEventListenerManager::HandleEvent(nsPresContext* aPresContext, } PRUint16 currentGroup = aFlags & NS_EVENT_FLAG_SYSTEM_EVENT; - /* Without this addref, certain events, notably ones bound to - keys which cause window deletion, can destroy this object - before we're ready. */ - nsCOMPtr kungFuDeathGrip(this); - if ((aEvent->message == NS_CONTEXTMENU || aEvent->message == NS_CONTEXTMENU_KEY) && NS_FAILED(FixContextMenuEvent(aPresContext, aCurrentTarget, aEvent,