From 947461bd29b5a8fdb20d3118ca538f385b242943 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 26 Apr 2018 16:06:24 +0200 Subject: [follow up] Bug 1216271 - Display a notification upon upgrade for users who currently allow notifications for at least one site --- application/palemoon/components/nsBrowserGlue.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'application') 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; + } }, }; -- cgit v1.2.3