mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Bug 783383 - Add null-checks for nsBaseWidget::mWidgetListener r=tn
This commit is contained in:
parent
80f272156f
commit
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user