mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +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
|
// 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;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue