Contact [email protected]

Explainerhttps://github.com/w3c/ServiceWorker/issues/1512#issue-596157033

Specificationhttps://github.com/w3c/ServiceWorker/pull/1526

Summary

This feature adds an `id` attribute to ServiceWorkerRegistration which acts
as a unique key identifying the registration. Previously the registration's
scope was used as the unique key. By moving to a separate `id` value the
scope can now be changed atomically without unregistering and
re-registering the existing registration.


Blink componentBlink>ServiceWorker
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EServiceWorker>

Motivation

This change adds a `ServiceWorkerRegistration.id` attribute which can be
used to uniquely identify registrations. This allows us to make the
registration's scope mutable. Previously if you wanted to change the scope
you would have to unregister and re-register the service worker which could
lose state like push subscriptions, etc.


Initial public proposal

TAG review

TAG review statusPending

Risks


Interoperability and Compatibility



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:


Debuggability



Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>
?No

Flag name

Requires code in //chrome?False

Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1286462

Estimated milestones

No milestones specified


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5654840750374912

This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK7rkMjfYSVJU0mG_qF%3DKzVSOvza-Veq0OvPi7YKk2fLag2oJA%40mail.gmail.com.

Reply via email to