Bug 1586411 - Don't crash if AttachLayerManager fails. r=rhunt

Differential Revision: https://phabricator.services.mozilla.com/D53760

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2019-11-24 21:23:04 +00:00
parent 99f1ccd668
commit b3e87fb19a

View File

@ -140,9 +140,7 @@ void BrowserBridgeParent::Destroy() {
IPCResult BrowserBridgeParent::RecvShow(const ScreenIntSize& aSize,
const bool& aParentIsActive,
const nsSizeMode& aSizeMode) {
if (!mBrowserParent->AttachLayerManager()) {
MOZ_CRASH();
}
mBrowserParent->AttachLayerManager();
Unused << mBrowserParent->SendShow(aSize, mBrowserParent->GetShowInfo(),
aParentIsActive, aSizeMode);
return IPC_OK();