mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 07:07:30 +09:00
[follow up] Bug 1216684 - Notification permissions ... in private windows - implemented "_getBrowserForRequest" function (e10 off only)
This commit is contained in:
parent
b8496042ed
commit
8b302f34b2
1 changed files with 10 additions and 0 deletions
|
|
@ -1689,6 +1689,16 @@ ContentPermissionPrompt.prototype = {
|
||||||
return chromeWin;
|
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.
|
* Show a permission prompt.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue