summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 16:06:24 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 16:06:24 +0200
commit947461bd29b5a8fdb20d3118ca538f385b242943 (patch)
tree7a3ed1fb70a9b5e433da48860f362d7a6aaae4c4 /application/palemoon/components
parent7ca378e8c09ff74c486a787d6ae6451b2ab8ed54 (diff)
downloadUXP-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
Diffstat (limited to 'application/palemoon/components')
-rw-r--r--application/palemoon/components/nsBrowserGlue.js20
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;
+ }
},
};