Bug 863221 - Crash in nsBaseWidget::NotifyUIStateChanged when GetPresShell returns NULL. r=roc

This commit is contained in:
Jacek Caban 2013-04-18 15:24:30 +02:00
parent 77aa03df22
commit 993daff738

View File

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