mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
[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:
parent
3e639acfef
commit
af0d98f060
1 changed files with 11 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue