From 52be8d23c9025d3df2e5b52a3aa57587c895bc72 Mon Sep 17 00:00:00 2001 From: "Olli.Pettay@helsinki.fi" Date: Mon, 23 Apr 2007 20:13:52 -0700 Subject: [PATCH] Bug 378369, Crash [@ nsEventListenerManager::FixContextMenuEvent] when firing contextmenu event in display: none iframe, r+sr=jst --- content/events/src/nsEventListenerManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/events/src/nsEventListenerManager.cpp b/content/events/src/nsEventListenerManager.cpp index 2ab5573a0223..e757b40f5d4a 100644 --- a/content/events/src/nsEventListenerManager.cpp +++ b/content/events/src/nsEventListenerManager.cpp @@ -1405,7 +1405,7 @@ nsEventListenerManager::FixContextMenuEvent(nsPresContext* aPresContext, nsEvent* aEvent, nsIDOMEvent** aDOMEvent) { - nsIPresShell* shell = aPresContext->GetPresShell(); + nsIPresShell* shell = aPresContext ? aPresContext->GetPresShell() : nsnull; if (!shell) { // Nothing to do. return NS_OK;