summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 17:12:33 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 17:12:33 +0200
commit1d18a1e8ef5aba0458576f6974f844afd6f2c8f6 (patch)
tree500d129d211ad0a0bd4fe71c70e22c5c7133067a /application/palemoon/components
parent98d8f632c634ee7ffa0aaf18c0db4f70de10be7c (diff)
downloadUXP-1d18a1e8ef5aba0458576f6974f844afd6f2c8f6.tar
UXP-1d18a1e8ef5aba0458576f6974f844afd6f2c8f6.tar.gz
UXP-1d18a1e8ef5aba0458576f6974f844afd6f2c8f6.tar.lz
UXP-1d18a1e8ef5aba0458576f6974f844afd6f2c8f6.tar.xz
UXP-1d18a1e8ef5aba0458576f6974f844afd6f2c8f6.zip
[follow up] Bug 1216684 - Notification permissions ... in private windows - implemented "_getBrowserForRequest" function (e10 off only)
Diffstat (limited to 'application/palemoon/components')
-rw-r--r--application/palemoon/components/nsBrowserGlue.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/application/palemoon/components/nsBrowserGlue.js b/application/palemoon/components/nsBrowserGlue.js
index 543698c3e..6563df4e6 100644
--- a/application/palemoon/components/nsBrowserGlue.js
+++ b/application/palemoon/components/nsBrowserGlue.js
@@ -1689,6 +1689,16 @@ ContentPermissionPrompt.prototype = {
return chromeWin;
},
+ _getBrowserForRequest: function (aRequest) {
+ let requestingWindow = aRequest.window.top;
+ // find the requesting browser or iframe
+ let browser = requestingWindow.QueryInterface(Ci.nsIInterfaceRequestor)
+ .getInterface(Ci.nsIWebNavigation)
+ .QueryInterface(Ci.nsIDocShell)
+ .chromeEventHandler;
+ return browser;
+ },
+
/**
* Show a permission prompt.
*