mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1195881 - Pass userContext through NeckoParent and TabChild. r=tanvi, r=sicking
This commit is contained in:
parent
06e4a6f988
commit
82579c5c6c
@ -835,7 +835,10 @@ TabChild::NotifyTabContextUpdated()
|
||||
} else {
|
||||
docShell->SetIsApp(OwnAppId());
|
||||
}
|
||||
docShell->SetIsSignedPackage(OriginAttributesRef().mSignedPkg);
|
||||
|
||||
OriginAttributes attrs = OriginAttributesRef();
|
||||
docShell->SetIsSignedPackage(attrs.mSignedPkg);
|
||||
docShell->SetUserContextId(attrs.mUserContextId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,20 @@ NeckoParent::GetValidatedAppInfo(const SerializedLoadContext& aSerialized,
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (!aSerialized.mOriginAttributes.mSignedPkg.IsEmpty() &&
|
||||
aSerialized.mOriginAttributes.mSignedPkg != tabContext.OriginAttributesRef().mSignedPkg) {
|
||||
continue;
|
||||
}
|
||||
aAttrs = DocShellOriginAttributes(appId, inBrowserElement);
|
||||
aAttrs.mSignedPkg = tabContext.OriginAttributesRef().mSignedPkg;
|
||||
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;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user