Skip to content

Firefox ships Declarative Web Push, skipping the service worker

Firefox 162 lets a push message describe its own notification, so it still shows up even if a site has a broken service worker. Safari already does this; Chrome has no plans to.

Source: Mozilla (MDN)

Firefox 162 adds support for Declarative Web Push, which lets a page subscribe to push notifications using an HTML <link rel="push"> element instead of registering a service worker in JavaScript. Firefox 162 is currently in Beta and ships to the stable channel on 8 December.

The point of the change is reliability. With the old Push API, a site’s service worker decides what the notification looks like, so if that code breaks, or simply isn’t running, the push silently fails to appear. Safari goes further and revokes a site’s push permission if a notification doesn’t show up in time. With the declarative version, the push message itself carries the notification content, so the browser can display it regardless of whether the site’s own code is working.

Safari had this first, in iOS 18.4 for home screen web apps and in Safari 18.5 on macOS. Chrome has no stated plans to add it, which leaves Chromium as the outlier.

Why it matters: if you maintain push notifications for a PWA, this removes a long-standing failure mode where a broken deploy could quietly kill notifications with no error anywhere. Once Firefox reaches stable, two of the three engines support it without a service worker in the loop.

The caveat: Firefox 162 is still in Beta; the feature isn’t in the stable channel until 8 December.

Share

More from The Wire

All briefs