summaryrefslogtreecommitdiff
path: root/application/palemoon/base/content/nsContextMenu.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 09:29:53 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 09:29:53 +0200
commit1f6068bc695b8bee56f0a99e4343ff138b1ee188 (patch)
tree4b78cacb88e4fe29027fc0c25fda4aea1be56e0e /application/palemoon/base/content/nsContextMenu.js
parent5a50a171b9855e5ac3fafe50547a381aef04a37b (diff)
downloaduxp-1f6068bc695b8bee56f0a99e4343ff138b1ee188.tar.gz
Bug 1398229 - Save-link-as feature should use the loading principal - context menu using nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD
Diffstat (limited to 'application/palemoon/base/content/nsContextMenu.js')
-rw-r--r--application/palemoon/base/content/nsContextMenu.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/palemoon/base/content/nsContextMenu.js b/application/palemoon/base/content/nsContextMenu.js
index f389491d3f..bd8bf9c85d 100644
--- a/application/palemoon/base/content/nsContextMenu.js
+++ b/application/palemoon/base/content/nsContextMenu.js
@@ -1131,7 +1131,9 @@ nsContextMenu.prototype = {
// checks after redirects, see bug: 1136055
var channel = NetUtil.newChannel({
uri: makeURI(linkURL),
- loadUsingSystemPrincipal: true
+ loadingPrincipal: this.principal,
+ contentPolicyType: Ci.nsIContentPolicy.TYPE_SAVEAS_DOWNLOAD,
+ securityFlags: Ci.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_DATA_INHERITS,
});
if (linkDownload)