Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upServiceWorker: implement lifetime management and termination #26361
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#26317 removes some lifetime management code(see the removal of sending the
ServiceWorkerMsg::Timeoutmessage) because it didn't fit well into that refactoring, and didn't seem to match the spec.We should re-implement it in a way that better matches the spec, especially the concept of "terminate a worker": https://w3c.github.io/ServiceWorker/#terminate-service-worker
and also https://w3c.github.io/ServiceWorker/#service-worker-lifetime (although that leaves a lot of leeway to the UA).