diff --git a/dom/ipc/WindowGlobalParent.cpp b/dom/ipc/WindowGlobalParent.cpp index bf5884f20080..d9755b3c0c98 100644 --- a/dom/ipc/WindowGlobalParent.cpp +++ b/dom/ipc/WindowGlobalParent.cpp @@ -78,7 +78,11 @@ void WindowGlobalParent::Init(const WindowGlobalInit& aInit) { // Determine which content process the window global is coming from. dom::ContentParentId processId(0); if (!mInProcess) { - processId = static_cast(Manager()->Manager())->ChildID(); + ContentParent* cp = static_cast(Manager()->Manager()); + processId = cp->ChildID(); + + // Ensure the content process has permissions for this principal. + cp->TransmitPermissionsForPrincipal(mDocumentPrincipal); } mBrowsingContext = CanonicalBrowsingContext::Cast(aInit.browsingContext());