зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1817649 - Fix crash in [@ mozilla::dom::EventTarget::ComputeWantsUntrusted]. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D171296
This commit is contained in:
Родитель
cf018a6114
Коммит
434f695131
|
@ -67,7 +67,9 @@ MenuBarListener::MenuBarListener(XULMenuBarElement& aElement)
|
|||
|
||||
// Needs to listen to the deactivate event of the window.
|
||||
RefPtr<EventTarget> top = nsContentUtils::GetWindowRoot(mEventTarget);
|
||||
top->AddSystemEventListener(u"deactivate"_ns, this, true);
|
||||
if (!NS_WARN_IF(!top)) {
|
||||
top->AddSystemEventListener(u"deactivate"_ns, this, true);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче