Open Bug 1190681 Opened 4 years ago Updated 3 months ago

Browser extension |notifications| API needs support for buttons in notifications


(WebExtensions :: Frontend, defect, P3)

34 Branch


(Not tracked)


(Reporter: billm, Unassigned)


(Depends on 1 open bug, Blocks 2 open bugs)


(Keywords: dev-doc-needed, Whiteboard: [notifications]triaged)

This will require some toolkit support.
Priority: -- → P1
Component: Extension Compatibility → WebExtensions
Product: Firefox → Toolkit
Whiteboard: [notifications]
Depends on: 1213455
Flags: blocking-webextensions-
Whiteboard: [notifications] → [notifications]triaged
Blocks: 1213455
No longer depends on: 1213455
No longer blocks: 1256627
See Also: → 1274559
I'm not sure this is a P1 (it was filed as such a year ago), Bob did we have some tracking bugs for what needs to happen to allow this to work?
Flags: needinfo?(bob.silverberg)
Depends on: 1286536
This is required for Chrome parity, but I agree that it may not be a P1. Native work is required to update nsIAlertsService to support the buttons. It doesn't look like a bug has been opened for that, so I created bug 1286536 and have marked it as blocking this bug. There are a few other things that we don't seem to support from chrome.notifications, such as notifications with multiple items, notifications which report progress, and the `requireInteraction` option [1]. I'm not sure where we stand on implementing those or not. Kris, do you have any thoughts on those?

Depends on: 1225110
Flags: needinfo?(bob.silverberg)
Flags: needinfo?(kmaglione+bmo)
Thanks for adding the blocking bug. Agree, its not a P1 so dropping.
Priority: P1 → P3
I agree that it doesn't seem like a huge priority at the moment, given the amount of platform work required. Let's look at it again in the next quarter, or when bug 1225110 is fixed.
Flags: needinfo?(kmaglione+bmo)
Component: WebExtensions: Untriaged → WebExtensions: Frontend
Flags: blocking-webextensions-
Duplicate of this bug: 1348726
Any tentative date to fix this bug ? I'll plan my web extension accordingly.
(In reply to sankar88.aj from comment #6)
> Any tentative date to fix this bug ? I'll plan my web extension accordingly.

No, the code that generates notifications (independent of webextensions) doesn't yet have support for buttons, so that needs to happen before the corresponding webextensions apis get implemented.  You can follow the dependent bug linked above, but it doesn't appear to be a high priority for anybody at the moment.
Now that all legacy add-ons are disabled in the Firefox nightly, maybe this should have a higher priority.

Adblock Plus (WebExtensions) falls back to Window.confirm if notifications with buttons are not supported, but that won't work for WebExtensions either because bug #1203394. There is currently no fallback available.
Thanks, windows.create might work as a fallback. It's still not available on Android though.
With the release of Firefox Quantum my Gmail extension could definitely use a notification button to quickly delete incoming emails, just as it does with my the Chrome version of the extension.
Half a year later, still an issue. This doesn't seem to be blocked by anything.
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.