diff --git a/dom/ipc/TabChild.cpp b/dom/ipc/TabChild.cpp index 0c8f855b3e7c..323b3685daef 100644 --- a/dom/ipc/TabChild.cpp +++ b/dom/ipc/TabChild.cpp @@ -835,10 +835,7 @@ TabChild::NotifyTabContextUpdated() } else { docShell->SetIsApp(OwnAppId()); } - - OriginAttributes attrs = OriginAttributesRef(); - docShell->SetIsSignedPackage(attrs.mSignedPkg); - docShell->SetUserContextId(attrs.mUserContextId); + docShell->SetIsSignedPackage(OriginAttributesRef().mSignedPkg); } } diff --git a/netwerk/ipc/NeckoParent.cpp b/netwerk/ipc/NeckoParent.cpp index 8e1c53d9e6d6..796e78f82c17 100644 --- a/netwerk/ipc/NeckoParent.cpp +++ b/netwerk/ipc/NeckoParent.cpp @@ -145,20 +145,12 @@ NeckoParent::GetValidatedAppInfo(const SerializedLoadContext& aSerialized, continue; } } - if (!aSerialized.mOriginAttributes.mSignedPkg.IsEmpty() && aSerialized.mOriginAttributes.mSignedPkg != tabContext.OriginAttributesRef().mSignedPkg) { continue; } - if (aSerialized.mOriginAttributes.mUserContextId != tabContext.OriginAttributesRef().mUserContextId) { - continue; - } - aAttrs = DocShellOriginAttributes(); - aAttrs.mAppId = appId; - aAttrs.mInBrowser = inBrowserElement; - aAttrs.mSignedPkg = aSerialized.mOriginAttributes.mSignedPkg; - aAttrs.mUserContextId = aSerialized.mOriginAttributes.mUserContextId; - + aAttrs = DocShellOriginAttributes(appId, inBrowserElement); + aAttrs.mSignedPkg = tabContext.OriginAttributesRef().mSignedPkg; return nullptr; }