mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1650257: Add more diagnostic assertions. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D86085
This commit is contained in:
parent
ba6b415906
commit
636561ac6f
@ -1321,6 +1321,8 @@ IPCResult BrowserParent::RecvIndexedDBPermissionRequest(
|
||||
IPCResult BrowserParent::RecvNewWindowGlobal(
|
||||
ManagedEndpoint<PWindowGlobalParent>&& aEndpoint,
|
||||
const WindowGlobalInit& aInit) {
|
||||
MOZ_DIAGNOSTIC_ASSERT(mBrowsingContext,
|
||||
"Should not receive messages after being unlinked");
|
||||
RefPtr<CanonicalBrowsingContext> browsingContext =
|
||||
CanonicalBrowsingContext::Get(aInit.context().mBrowsingContextId);
|
||||
if (!browsingContext) {
|
||||
|
@ -115,6 +115,8 @@ already_AddRefed<WindowGlobalChild> WindowGlobalChild::Create(
|
||||
MOZ_ASSERT(browserChild);
|
||||
|
||||
MOZ_DIAGNOSTIC_ASSERT(!aWindow->GetBrowsingContext()->IsDiscarded());
|
||||
MOZ_DIAGNOSTIC_ASSERT(aWindow->GetBrowsingContext()->EverAttached());
|
||||
MOZ_DIAGNOSTIC_ASSERT(aWindow->GetBrowsingContext()->IsInProcess());
|
||||
|
||||
ManagedEndpoint<PWindowGlobalParent> endpoint =
|
||||
browserChild->OpenPWindowGlobalEndpoint(wgc);
|
||||
|
Loading…
Reference in New Issue
Block a user