Bug 1616991 - Rename WindowGlobalChild::WindowGlobal getter to reflect nullability, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64660
This commit is contained in:
@@ -6630,7 +6630,7 @@ nsresult nsDocShell::CreateContentViewerForActor(
|
||||
MOZ_ASSERT(
|
||||
doc,
|
||||
"Should have a document if CreateAboutBlankContentViewer succeeded");
|
||||
MOZ_ASSERT(doc->GetOwnerGlobal() == aWindowActor->WindowGlobal(),
|
||||
MOZ_ASSERT(doc->GetOwnerGlobal() == aWindowActor->GetWindowGlobal(),
|
||||
"New document should be in the same global as our actor");
|
||||
|
||||
// FIXME: We may want to support non-initial documents here.
|
||||
|
||||
@@ -115,7 +115,7 @@ Document* JSWindowActorChild::GetDocument(ErrorResult& aRv) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsGlobalWindowInner* window = mManager->WindowGlobal();
|
||||
nsGlobalWindowInner* window = mManager->GetWindowGlobal();
|
||||
return window ? window->GetDocument() : nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -270,7 +270,7 @@ mozilla::ipc::IPCResult WindowGlobalChild::RecvMakeFrameLocal(
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
if (NS_WARN_IF(embedderElt->GetOwnerGlobal() != WindowGlobal())) {
|
||||
if (NS_WARN_IF(embedderElt->GetOwnerGlobal() != GetWindowGlobal())) {
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
@@ -327,7 +327,7 @@ mozilla::ipc::IPCResult WindowGlobalChild::RecvMakeFrameRemote(
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
if (NS_WARN_IF(embedderElt->GetOwnerGlobal() != WindowGlobal())) {
|
||||
if (NS_WARN_IF(embedderElt->GetOwnerGlobal() != GetWindowGlobal())) {
|
||||
BrowserBridgeChild::Send__delete__(bridge);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ class WindowGlobalChild final : public WindowGlobalActor,
|
||||
|
||||
dom::BrowsingContext* BrowsingContext() override { return mBrowsingContext; }
|
||||
dom::WindowContext* WindowContext() { return mWindowContext; }
|
||||
nsGlobalWindowInner* WindowGlobal() { return mWindowGlobal; }
|
||||
nsGlobalWindowInner* GetWindowGlobal() { return mWindowGlobal; }
|
||||
|
||||
// Has this actor been shut down
|
||||
bool IsClosed() { return !CanSend(); }
|
||||
|
||||
Reference in New Issue
Block a user