зеркало из https://github.com/mozilla/gecko-dev.git
Bug 783383 - Add null-checks for nsBaseWidget::mWidgetListener r=tn
This commit is contained in:
Родитель
80f272156f
Коммит
e757e51d27
|
@ -1370,6 +1370,9 @@ void
|
|||
nsBaseWidget::NotifyUIStateChanged(UIStateChangeType aShowAccelerators,
|
||||
UIStateChangeType aShowFocusRings)
|
||||
{
|
||||
if (!mWidgetListener)
|
||||
return;
|
||||
|
||||
nsIPresShell* presShell = mWidgetListener->GetPresShell();
|
||||
nsIDocument* doc = presShell->GetDocument();
|
||||
if (doc) {
|
||||
|
@ -1385,6 +1388,8 @@ nsBaseWidget::NotifyUIStateChanged(UIStateChangeType aShowAccelerators,
|
|||
Accessible*
|
||||
nsBaseWidget::GetAccessible()
|
||||
{
|
||||
NS_ENSURE_TRUE(mWidgetListener, nullptr);
|
||||
|
||||
nsIPresShell* presShell = mWidgetListener->GetPresShell();
|
||||
NS_ENSURE_TRUE(presShell, nullptr);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче