Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Add silent option for WebExtension Notifications

UNCONFIRMED
Unassigned

Status

()

Toolkit
WebExtensions: General
UNCONFIRMED
6 months ago
2 months ago

People

(Reporter: Samuel Jun, Unassigned)

Tracking

51 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [design-decision-approved][triaged][notifications])

(Reporter)

Description

6 months ago
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

6 months ago
Component: WebExtensions: Untriaged → WebExtensions: General
Whiteboard: [design-decision-needed][triaged]

Updated

5 months ago
Whiteboard: [design-decision-needed][triaged] → [design-decision-needed][triaged][notifications]

Comment 1

2 months 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]
You need to log in before you can comment on or make changes to this bug.