diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 16:06:24 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 16:06:24 +0200 |
commit | 947461bd29b5a8fdb20d3118ca538f385b242943 (patch) | |
tree | 7a3ed1fb70a9b5e433da48860f362d7a6aaae4c4 | |
parent | 7ca378e8c09ff74c486a787d6ae6451b2ab8ed54 (diff) | |
download | UXP-947461bd29b5a8fdb20d3118ca538f385b242943.tar UXP-947461bd29b5a8fdb20d3118ca538f385b242943.tar.gz UXP-947461bd29b5a8fdb20d3118ca538f385b242943.tar.lz UXP-947461bd29b5a8fdb20d3118ca538f385b242943.tar.xz UXP-947461bd29b5a8fdb20d3118ca538f385b242943.zip |
[follow up] Bug 1216271 - Display a notification upon upgrade for users who currently allow notifications for at least one site
-rw-r--r-- | application/palemoon/components/nsBrowserGlue.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/application/palemoon/components/nsBrowserGlue.js b/application/palemoon/components/nsBrowserGlue.js index b8de4f00d..543698c3e 100644 --- a/application/palemoon/components/nsBrowserGlue.js +++ b/application/palemoon/components/nsBrowserGlue.js @@ -850,6 +850,7 @@ BrowserGlue.prototype = { // This will throw NS_ERROR_NOT_AVAILABLE if the notification cannot // be displayed per the idl. AlertsService.showAlertNotification(null, title, text, + true, url, clickCallback); } catch (e) { Cu.reportError(e); @@ -1982,15 +1983,16 @@ ContentPermissionPrompt.prototype = { // Show the prompt. switch (perm.type) { - case "geolocation": - this._promptGeo(request); - break; - case "desktop-notification": - this._promptWebNotifications(request); - break; - case "pointerLock": - this._promptPointerLock(request, autoAllow); - break; + case "geolocation": + this._promptGeo(request); + break; + case "desktop-notification": + this._promptWebNotifications(request); + break; + case "pointerLock": + this._promptPointerLock(request, autoAllow); + break; + } }, }; |