mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 882495 - Get window for permission prompt by outer window ID instead of most recent window. r=gwagner
--HG-- extra : rebase_source : a9ac7ca43e77a0144005fb68a67aa653598378cb
This commit is contained in:
parent
f6b9497b4e
commit
73a5ca1331
@ -739,7 +739,8 @@ ContactManager.prototype = {
|
||||
requestID: requestID,
|
||||
origin: principal.origin,
|
||||
appID: principal.appId,
|
||||
browserFlag: principal.isInBrowserElement
|
||||
browserFlag: principal.isInBrowserElement,
|
||||
windowID: this._window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).outerWindowID
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -86,7 +86,7 @@ this.PermissionPromptHelper = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIContentPermissionRequest]),
|
||||
allow: aCallbacks.allow,
|
||||
cancel: aCallbacks.cancel,
|
||||
window: Services.wm.getMostRecentWindow("navigator:browser")
|
||||
window: Services.wm.getOuterWindowWithId(msg.windowID)
|
||||
};
|
||||
|
||||
permissionPromptService.getPermission(request);
|
||||
|
Loading…
Reference in New Issue
Block a user