[follow up] Bug 1216271 - Display a notification upon upgrade for users who currently allow notifications for at least one site

This commit is contained in:
janekptacijarabaci 2018-04-26 16:06:24 +02:00 committed by Roy Tam
commit af0d98f060

View file

@ -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;
}
},
};