Hello, Target release: Firefox 42 Implementation and shipping bug: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=1114554 Specification: https://notifications.spec.whatwg.org/#service-worker-api
This is a follow up to the Notification API on worker support that landed in Firefox 41 [1]. These patches implement support for the `showNotification()` and `getNotifications()` methods on ServiceWorkerRegistration. The `Notification` constructor is available on ServiceWorkers but throws an error if actually used. Potential for abuse? This API allows service workers to show notifications to the user. This can happen even when a tab/window for the origin is not open in the browser. Service Workers can only run when the UA decides to run them and ideally only for a short time. If we notice abuse, we could restrict the ability to show notifications only to certain events (like push) and forbid them in others (like fetch events which occur several orders of magnitude more often), but we do not do that right now. Platforms: Available on all platforms. But Firefox for Android has limitations on its notification subsystem that prevents this from working. Support in other engines: Blink - shipped in Chrome 42/Opera 29- https://groups.google.com/a/chromium.org/d/topic/blink-dev/Cr7_GRSd2zM/discussion Webkit - not supported Edge/Trident: not supported Developer documentation: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification [1] https://groups.google.com/forum/#!topic/mozilla.dev.platform/CsM4I2Y9tS0 Best, Nikhil _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform