Skip to content

Commit

Permalink
Bug 1586411 - Don't crash if AttachLayerManager fails. r=rhunt
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoodrow committed Nov 24, 2019
1 parent 0e868fd commit 0667f1f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dom/ipc/BrowserBridgeParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0667f1f

Please sign in to comment.