-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing ServiceWorker-Using Specifications #349
Comments
Based on the discussion in https://gist.github.com/jungkees/3154398b8deee7c70139, |
We should update this for the new registration model |
Here's a rough sketch: If a new web platform feature fires events within a ServiceWorker, or requires user permissions that last beyond the length of the page, it should extend
It's down to the API to decide whether to resolve/reject the promise. The API should be able to store state along with the registration (permissions granted, registrations etc). Unregistration of the serviceworker will remove all state & registrations associated with the API (do we need to provide a hook here?). Events fired to a ServiceWorker must only be targeted at the active worker in the associated registration. ServiceWorker upgrades do not affect state stored along with the registration. Existing APIs (defined outside of |
6bcb33b Closing. |
For the other specs (currently Background Synchronization, Push API, Task Scheduler) that extend Service Workers, we need to provide a guide in the spec. Here's a sketch of the section: https://gist.github.com/jungkees/3154398b8deee7c70139
Please comment on it.
/cc @slightlyoff @jakearchibald @sicking @annevk
The text was updated successfully, but these errors were encountered: