mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 378369, Crash [@ nsEventListenerManager::FixContextMenuEvent] when firing contextmenu event in display: none iframe, r+sr=jst
This commit is contained in:
parent
61d1a2ea97
commit
78227c5b37
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user