diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 08:37:49 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 08:37:49 +0200 |
commit | c21420c94ac59b79b1935a2240dfc09a4720f443 (patch) | |
tree | c33a1cb5c196dfd73d199f114baaef901c8f4a83 /application/palemoon/base/content/nsContextMenu.js | |
parent | de057c7a5635e65f45ce47162d226b1ddf24e8aa (diff) | |
download | UXP-c21420c94ac59b79b1935a2240dfc09a4720f443.tar UXP-c21420c94ac59b79b1935a2240dfc09a4720f443.tar.gz UXP-c21420c94ac59b79b1935a2240dfc09a4720f443.tar.lz UXP-c21420c94ac59b79b1935a2240dfc09a4720f443.tar.xz UXP-c21420c94ac59b79b1935a2240dfc09a4720f443.zip |
[PALEMOON] [frontend and backend] Added support for "referrerPolicy"
Issue #121
https://bugzilla.mozilla.org/show_bug.cgi?id=1113431
Diffstat (limited to 'application/palemoon/base/content/nsContextMenu.js')
-rw-r--r-- | application/palemoon/base/content/nsContextMenu.js | 7 |
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 |