mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783383 - Add null-checks for nsBaseWidget::mWidgetListener r=tn
This commit is contained in:
parent
641186f842
commit
be470ea107
@ -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…
Reference in New Issue
Block a user