mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1006024 - Part 4: Remove context null checks from nsGlobalWindow::GetMessageManager. r=bholley
This commit is contained in:
parent
25fd2fd7de
commit
4ca1dde9bf
@ -13452,12 +13452,6 @@ nsGlobalWindow::GetMessageManager(ErrorResult& aError)
|
||||
MOZ_ASSERT(IsChromeWindow());
|
||||
nsGlobalChromeWindow* myself = static_cast<nsGlobalChromeWindow*>(this);
|
||||
if (!myself->mMessageManager) {
|
||||
nsIScriptContext* scx = GetContextInternal();
|
||||
if (NS_WARN_IF(!scx || !(scx->GetNativeContext()))) {
|
||||
aError.Throw(NS_ERROR_UNEXPECTED);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIMessageBroadcaster> globalMM =
|
||||
do_GetService("@mozilla.org/globalmessagemanager;1");
|
||||
myself->mMessageManager =
|
||||
|
Loading…
Reference in New Issue
Block a user