summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/nsContextMenu.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-29 13:09:20 +0200
committerGitHub <noreply@github.com>2018-04-29 13:09:20 +0200
commiteb6c09c5ebef9e59ffbe575e9605c7bbcea6454f (patch)
tree01519717fe5509f6604cc4b695c3c90783311313 /application/palemoon/base/content/nsContextMenu.js
parent600ac9cae5721a5c4594e3329af615935cdadf49 (diff)
parentc21420c94ac59b79b1935a2240dfc09a4720f443 (diff)
downloadUXP-eb6c09c5ebef9e59ffbe575e9605c7bbcea6454f.tar
UXP-eb6c09c5ebef9e59ffbe575e9605c7bbcea6454f.tar.gz
UXP-eb6c09c5ebef9e59ffbe575e9605c7bbcea6454f.tar.lz
UXP-eb6c09c5ebef9e59ffbe575e9605c7bbcea6454f.tar.xz
UXP-eb6c09c5ebef9e59ffbe575e9605c7bbcea6454f.zip
Merge pull request #289 from janekptacijarabaci/pm_referrerPolicy_1
[PALEMOON] [frontend vs backend] Added support for "referrerPolicy"
Diffstat (limited to 'application/palemoon/base/content/nsContextMenu.js')
-rw-r--r--application/palemoon/base/content/nsContextMenu.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/application/palemoon/base/content/nsContextMenu.js b/application/palemoon/base/content/nsContextMenu.js
index 830c20998..f389491d3 100644
--- a/application/palemoon/base/content/nsContextMenu.js
+++ b/application/palemoon/base/content/nsContextMenu.js
@@ -753,7 +753,8 @@ nsContextMenu.prototype = {
urlSecurityCheck(this.linkURL, doc.nodePrincipal);
openLinkIn(this.linkURL, "window",
{ charset: doc.characterSet,
- referrerURI: doc.documentURIObject });
+ referrerURI: doc.documentURIObject,
+ referrerPolicy: doc.referrerPolicy });
},
// Open linked-to URL in a new private window.
@@ -763,6 +764,7 @@ nsContextMenu.prototype = {
openLinkIn(this.linkURL, "window",
{ charset: doc.characterSet,
referrerURI: doc.documentURIObject,
+ referrerPolicy: doc.referrerPolicy,
private: true });
},
@@ -772,7 +774,8 @@ nsContextMenu.prototype = {
urlSecurityCheck(this.linkURL, doc.nodePrincipal);
openLinkIn(this.linkURL, "tab",
{ charset: doc.characterSet,
- referrerURI: doc.documentURIObject });
+ referrerURI: doc.documentURIObject,
+ referrerPolicy: doc.referrerPolicy });
},
// open URL in current tab