Bug 378369, Crash [@ nsEventListenerManager::FixContextMenuEvent] when firing contextmenu event in display: none iframe, r+sr=jst

This commit is contained in:
Olli.Pettay@helsinki.fi 2007-04-23 20:13:52 -07:00
parent 61d1a2ea97
commit 78227c5b37

View File

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