зеркало из https://github.com/mozilla/gecko-dev.git
Bug 834760: Null-check mAttachedWidgetListener. r=mwu
This commit is contained in:
Родитель
178419056e
Коммит
b60977be36
|
@ -263,8 +263,6 @@ PuppetWidget::DispatchEvent(nsGUIEvent* event, nsEventStatus& aStatus)
|
|||
|
||||
aStatus = nsEventStatus_eIgnore;
|
||||
|
||||
NS_ABORT_IF_FALSE(mAttachedWidgetListener, "No listener!");
|
||||
|
||||
if (event->message == NS_COMPOSITION_START) {
|
||||
mIMEComposing = true;
|
||||
}
|
||||
|
@ -288,7 +286,9 @@ PuppetWidget::DispatchEvent(nsGUIEvent* event, nsEventStatus& aStatus)
|
|||
break;
|
||||
}
|
||||
|
||||
if (mAttachedWidgetListener) {
|
||||
aStatus = mAttachedWidgetListener->HandleEvent(event, mUseAttachedEvents);
|
||||
}
|
||||
|
||||
if (event->message == NS_COMPOSITION_END) {
|
||||
mIMEComposing = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче