Bug 1679325 - Part 1: Making contentAreaUtils.saveURL to accept cookieJarSettings. r=smaug
This patch makes the contentAreaUtils.saveURL to be aware of the cookieJarSettings, and updates all callers. This also updates the documentation of the persistArgs 'cookieJarSettings' for internalPersist(). Differential Revision: https://phabricator.services.mozilla.com/D98455
This commit is contained in:
@@ -1426,6 +1426,7 @@ class nsContextMenu {
|
||||
bypassCache,
|
||||
doc,
|
||||
referrerInfo,
|
||||
cookieJarSettings,
|
||||
windowID,
|
||||
linkDownload,
|
||||
isContentWindowPrivate
|
||||
@@ -1494,6 +1495,7 @@ class nsContextMenu {
|
||||
bypassCache,
|
||||
false,
|
||||
referrerInfo,
|
||||
cookieJarSettings,
|
||||
doc,
|
||||
isContentWindowPrivate,
|
||||
this._triggeringPrincipal
|
||||
@@ -1579,6 +1581,8 @@ class nsContextMenu {
|
||||
if (channel instanceof Ci.nsIHttpChannelInternal) {
|
||||
channel.forceAllowThirdPartyCookie = true;
|
||||
}
|
||||
|
||||
channel.loadInfo.cookieJarSettings = cookieJarSettings;
|
||||
}
|
||||
|
||||
// fallback to the old way if we don't see the headers quickly
|
||||
@@ -1610,6 +1614,7 @@ class nsContextMenu {
|
||||
true,
|
||||
this.ownerDoc,
|
||||
referrerInfo,
|
||||
this.contentData.cookieJarSettings,
|
||||
this.frameOuterWindowID,
|
||||
this.linkDownload,
|
||||
isContentWindowPrivate
|
||||
|
||||
Reference in New Issue
Block a user