Re: [w3c/ServiceWorker] Provide a way to skipWaiting when the last tab refreshes (#1238)

In 2024 this still seems to be an issue, I tried your solution, which works, but has a bug: if you open a new tab with the same link, while a tab is already opened, the service worker catches the navigate event and still think it has only 1 client, since the second one is loading, and therefore skip waiting, even though the first client has not reloaded.

This leads to a situation when the first client was loaded using the old sw but now is controlled by the new one, making this solution risky =/

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1238#issuecomment-1969158811
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1238/1969158811@github.com>

Received on Wednesday, 28 February 2024 14:55:05 UTC