Open
Bug 1335659
Opened 8 years ago
Updated 2 years ago
Add silent option for WebExtension Notifications
Categories
(WebExtensions :: General, defect, P5)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: mrsamueljun, Unassigned)
References
Details
(Whiteboard: [design-decision-approved][triaged][notifications])
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 Build ID: 20170126200443 Steps to reproduce: I would like to be able to create silent WebExtension notifications so that I can trigger my own audio file for a consistent experience on all platforms. On Linux, Firefox doesn't automatically trigger the desktop environment notification sound. On Mac, Firefox does automatically trigger the desktop environment notification sound. Since my addon acts as a timer, a notification as well as a notification sound is highly useful. The problem is that if I play a notification sound when the notification is created, the MacOS notification chime plays on top of my own notification sound. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/notifications/NotificationOptions I imagine the option would very similar to the silent option for the Web API notifications: https://developer.mozilla.org/en-US/docs/Web/API/Notification/silent.
Updated•8 years ago
|
Component: WebExtensions: Untriaged → WebExtensions: General
Whiteboard: [design-decision-needed][triaged]
Updated•8 years ago
|
Whiteboard: [design-decision-needed][triaged] → [design-decision-needed][triaged][notifications]
Comment 1•7 years ago
|
||
I don't have much of a problem with this, however we just wrap nsIAlertsService and that doesn't have the silent option, if my reading of https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIAlertsService is correct. I'm not sure how much code nsIAlertsService and Web API share.
Whiteboard: [design-decision-needed][triaged][notifications] → [design-decision-approved][triaged][notifications]
Updated•7 years ago
|
Priority: -- → P5
Comment 2•7 years ago
|
||
The better solution here, that also relies on an unimplemented web notification feature, would be to allow specifying custom sound files, see https://developer.mozilla.org/en-US/docs/Web/API/notification/sound . Now, neither of those web platform features seem to be in very active development for Firefox. See https://bugzilla.mozilla.org/show_bug.cgi?id=1105222 for the sound implementation, though it seems like that's leaning toward supporting silent over sound.
Updated•6 years ago
|
Product: Toolkit → WebExtensions
The original request was https://bugzilla.mozilla.org/show_bug.cgi?id=1073717 - this seems a really simple thing to have taken this long to do and continue to be ignored. Plenty of web apps have reasons to notify without sound - music players in particular. I've had to turn notifications off for Firefox because of this.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•