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:
Tim Huang
2020-12-03 20:10:36 +00:00
parent 3f3e8a0647
commit b77a2550da
7 changed files with 17 additions and 5 deletions

View File

@@ -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