- From: Ben Kelly <notifications@github.com>
- Date: Sat, 05 Dec 2015 12:20:55 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Saturday, 5 December 2015 20:21:24 UTC
I'm less certain if we need this large a change now that we're removing script URL from the registration and making it an argument to the job. I need to think about it more. About the original race, if we move the .register() accesses to the registration into a job queue then we could make the Clear Registration conditional on if the queue is empty. So we only clear when there is no competing registration, etc. Perhaps another way would be to have it set the uninstalling flag instead of calling Clear Registration. In the end, I expect what chrome does is not racey. If we could just accurately describe that algorithm in the spec, then we could match it. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/783#issuecomment-162243147
Received on Saturday, 5 December 2015 20:21:24 UTC