[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 // This will throw NS_ERROR_NOT_AVAILABLE if the notification cannot
// be displayed per the idl. // be displayed per the idl.
AlertsService.showAlertNotification(null, title, text, AlertsService.showAlertNotification(null, title, text,
true, url, clickCallback);
} }
catch (e) { catch (e) {
Cu.reportError(e); Cu.reportError(e);
@ -1982,15 +1983,16 @@ ContentPermissionPrompt.prototype = {
// Show the prompt. // Show the prompt.
switch (perm.type) { switch (perm.type) {
case "geolocation": case "geolocation":
this._promptGeo(request); this._promptGeo(request);
break; break;
case "desktop-notification": case "desktop-notification":
this._promptWebNotifications(request); this._promptWebNotifications(request);
break; break;
case "pointerLock": case "pointerLock":
this._promptPointerLock(request, autoAllow); this._promptPointerLock(request, autoAllow);
break; break;
}
}, },
}; };