workbox icon indicating copy to clipboard operation
workbox copied to clipboard

Installing Race Condition Test

Open azizhk opened this issue 4 years ago • 1 comments

Prior to filing a PR, please: Based on discussion in #2209 #2216 This is a test case trying to recreate a race condition where the service worker is in "installing" state when the user/developer calls wb.register().

Workbox does not add listeners to pre-existing registration.installing service worker but only when updatefound event is triggered.

R: @jeffposnick @philipwalton

azizhk avatar Sep 04 '19 02:09 azizhk

I hope it's clear that my aim is not to defer "installing" but actually to programmatically create a condition where there exists a registration.installing SW when register is called.

azizhk avatar Sep 06 '19 11:09 azizhk