mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 863221 - Crash in nsBaseWidget::NotifyUIStateChanged when GetPresShell returns NULL. r=roc
This commit is contained in:
parent
77aa03df22
commit
993daff738
@ -1442,6 +1442,9 @@ nsBaseWidget::NotifyUIStateChanged(UIStateChangeType aShowAccelerators,
|
||||
return;
|
||||
|
||||
nsIPresShell* presShell = mWidgetListener->GetPresShell();
|
||||
if (!presShell)
|
||||
return;
|
||||
|
||||
nsIDocument* doc = presShell->GetDocument();
|
||||
if (doc) {
|
||||
nsPIDOMWindow* win = doc->GetWindow();
|
||||
|
Loading…
Reference in New Issue
Block a user