mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 908277 - Prevent permission UI errors when PopupNotifications is not available. r=dolske
This commit is contained in:
parent
f9bfd407e3
commit
0e08490bca
@ -2030,6 +2030,13 @@ ContentPermissionPrompt.prototype = {
|
||||
}
|
||||
}
|
||||
|
||||
var browser = this._getBrowserForRequest(request);
|
||||
var chromeWin = browser.ownerDocument.defaultView;
|
||||
if (!chromeWin.PopupNotifications)
|
||||
// Ignore requests from browsers hosted in windows that don't support
|
||||
// PopupNotifications.
|
||||
return;
|
||||
|
||||
// Show the prompt.
|
||||
switch (request.type) {
|
||||
case "geolocation":
|
||||
|
Loading…
Reference in New Issue
Block a user