mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1221049 - Use originAttributes from TabContext. r=kanru
This commit is contained in:
parent
fe6f7a3c0b
commit
eca647127c
@ -77,7 +77,7 @@ public:
|
||||
bool aIsContent,
|
||||
bool aUsePrivateBrowsing,
|
||||
bool aUseRemoteTabs,
|
||||
OriginAttributes& aAttrs)
|
||||
const OriginAttributes& aAttrs)
|
||||
: mTopFrameElement(do_GetWeakReference(aTopFrameElement))
|
||||
, mNestedFrameId(0)
|
||||
, mIsContent(aIsContent)
|
||||
|
@ -5188,8 +5188,7 @@ ContentParent::AllocPOfflineCacheUpdateParent(const URIParams& aManifestURI,
|
||||
}
|
||||
RefPtr<mozilla::docshell::OfflineCacheUpdateParent> update =
|
||||
new mozilla::docshell::OfflineCacheUpdateParent(
|
||||
tabContext.OwnOrContainingAppId(),
|
||||
tabContext.IsBrowserElement());
|
||||
tabContext.OriginAttributesRef());
|
||||
// Use this reference as the IPDL reference.
|
||||
return update.forget().take();
|
||||
}
|
||||
|
@ -2822,13 +2822,11 @@ TabParent::GetLoadContext()
|
||||
if (mLoadContext) {
|
||||
loadContext = mLoadContext;
|
||||
} else {
|
||||
// TODO Bug 1191740 - Add OriginAttributes in TabContext
|
||||
OriginAttributes attrs = OriginAttributes(OwnOrContainingAppId(), IsBrowserElement());
|
||||
loadContext = new LoadContext(GetOwnerElement(),
|
||||
true /* aIsContent */,
|
||||
mChromeFlags & nsIWebBrowserChrome::CHROME_PRIVATE_WINDOW,
|
||||
mChromeFlags & nsIWebBrowserChrome::CHROME_REMOTE_WINDOW,
|
||||
attrs);
|
||||
OriginAttributesRef());
|
||||
mLoadContext = loadContext;
|
||||
}
|
||||
return loadContext.forget();
|
||||
|
@ -52,11 +52,9 @@ NS_IMPL_ISUPPORTS(OfflineCacheUpdateParent,
|
||||
// OfflineCacheUpdateParent <public>
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// TODO: Bug 1191740 - Add OriginAttributes in TabContext
|
||||
OfflineCacheUpdateParent::OfflineCacheUpdateParent(uint32_t aAppId,
|
||||
bool aIsInBrowser)
|
||||
OfflineCacheUpdateParent::OfflineCacheUpdateParent(const OriginAttributes& aAttrs)
|
||||
: mIPCClosed(false)
|
||||
, mOriginAttributes(aAppId, aIsInBrowser)
|
||||
, mOriginAttributes(aAttrs)
|
||||
{
|
||||
// Make sure the service has been initialized
|
||||
nsOfflineCacheUpdateService::EnsureService();
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
mIPCClosed = true;
|
||||
}
|
||||
|
||||
OfflineCacheUpdateParent(uint32_t aAppId, bool aIsInBrowser);
|
||||
OfflineCacheUpdateParent(const mozilla::OriginAttributes& aAttrs);
|
||||
|
||||
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user