diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-28 10:06:53 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-28 10:06:53 +0200 |
commit | 8d42d5cad798b94e2ef9cfc3bfc6f997889f21f4 (patch) | |
tree | 2d73b22d99a4f2ba684c3f2fed3b089ab77a6bd3 /application/palemoon/base/content/nsContextMenu.js | |
parent | 09eda489bc52ff2c292a66e0fcddf63195c0eda6 (diff) | |
download | UXP-8d42d5cad798b94e2ef9cfc3bfc6f997889f21f4.tar UXP-8d42d5cad798b94e2ef9cfc3bfc6f997889f21f4.tar.gz UXP-8d42d5cad798b94e2ef9cfc3bfc6f997889f21f4.tar.lz UXP-8d42d5cad798b94e2ef9cfc3bfc6f997889f21f4.tar.xz UXP-8d42d5cad798b94e2ef9cfc3bfc6f997889f21f4.zip |
[PALEMOON] [frontend vs backend] Implemented "originPrincipal" and "triggeringPrincipal"
Issue #679
Follow up #311
Diffstat (limited to 'application/palemoon/base/content/nsContextMenu.js')
-rw-r--r-- | application/palemoon/base/content/nsContextMenu.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/application/palemoon/base/content/nsContextMenu.js b/application/palemoon/base/content/nsContextMenu.js index 738868ccb..19b2fac77 100644 --- a/application/palemoon/base/content/nsContextMenu.js +++ b/application/palemoon/base/content/nsContextMenu.js @@ -754,7 +754,9 @@ nsContextMenu.prototype = { openLinkIn(this.linkURL, "window", { charset: doc.characterSet, referrerURI: doc.documentURIObject, - referrerPolicy: doc.referrerPolicy }); + referrerPolicy: doc.referrerPolicy, + originPrincipal: doc.nodePrincipal, + triggeringPrincipal: doc.nodePrincipal }); }, // Open linked-to URL in a new private window. @@ -765,6 +767,8 @@ nsContextMenu.prototype = { { charset: doc.characterSet, referrerURI: doc.documentURIObject, referrerPolicy: doc.referrerPolicy, + originPrincipal: doc.nodePrincipal, + triggeringPrincipal: doc.nodePrincipal, private: true }); }, @@ -775,7 +779,9 @@ nsContextMenu.prototype = { openLinkIn(this.linkURL, "tab", { charset: doc.characterSet, referrerURI: doc.documentURIObject, - referrerPolicy: doc.referrerPolicy }); + referrerPolicy: doc.referrerPolicy, + originPrincipal: doc.nodePrincipal, + triggeringPrincipal: doc.nodePrincipal }); }, // open URL in current tab @@ -784,7 +790,9 @@ nsContextMenu.prototype = { urlSecurityCheck(this.linkURL, doc.nodePrincipal); openLinkIn(this.linkURL, "current", { charset: doc.characterSet, - referrerURI: doc.documentURIObject }); + referrerURI: doc.documentURIObject, + originPrincipal: doc.nodePrincipal, + triggeringPrincipal: doc.nodePrincipal }); }, // Open frame in a new tab. |