This will require some toolkit support.
4 years ago
Priority: -- → P1
4 years ago
Component: Extension Compatibility → WebExtensions
Product: Firefox → Toolkit
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?
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 . I'm not sure where we stand on implementing those or not. Kris, do you have any thoughts on those?  https://developer.chrome.com/extensions/notifications#type-NotificationOptions
Depends on: 1225110
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.
Component: WebExtensions: Untriaged → WebExtensions: Frontend
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.
> There is currently no fallback available. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/windows/create
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.
You need to log in before you can comment on or make changes to this bug.