summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 13:14:07 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 13:14:07 +0200
commit3cf5a826006477aec57e428a216d317cec1c9ca0 (patch)
tree23e6ef01503dee748f3236de879e574aa93c7e08 /application/palemoon
parent8eb2350e4fb66edf33d13af12023862a9652dd1d (diff)
downloadUXP-3cf5a826006477aec57e428a216d317cec1c9ca0.tar
UXP-3cf5a826006477aec57e428a216d317cec1c9ca0.tar.gz
UXP-3cf5a826006477aec57e428a216d317cec1c9ca0.tar.lz
UXP-3cf5a826006477aec57e428a216d317cec1c9ca0.tar.xz
UXP-3cf5a826006477aec57e428a216d317cec1c9ca0.zip
[PALEMOON] Fix "loadingPrincipal" in nsContextMenu.js
Diffstat (limited to 'application/palemoon')
-rw-r--r--application/palemoon/base/content/nsContextMenu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/palemoon/base/content/nsContextMenu.js b/application/palemoon/base/content/nsContextMenu.js
index 2a794c5f2..738868ccb 100644
--- a/application/palemoon/base/content/nsContextMenu.js
+++ b/application/palemoon/base/content/nsContextMenu.js
@@ -1126,7 +1126,7 @@ nsContextMenu.prototype = {
// setting up a new channel for 'right click - save link as ...'
var channel = NetUtil.newChannel({
uri: makeURI(linkURL),
- loadingPrincipal: this.principal,
+ loadingPrincipal: this.target.ownerDocument.nodePrincipal,
contentPolicyType: Ci.nsIContentPolicy.TYPE_SAVEAS_DOWNLOAD,
securityFlags: Ci.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_DATA_INHERITS,
});