Open wanderview opened 7 years ago
FWIW I'm landing this change in gecko's webidl for now. I need some value internally for the state during initial script evaluation before installation actually starts. Currently its not accessible to script but of course that could change with stuff like #1077. If anyone would like to use a different name, e.g. evaluating
, please let me know.
Given it isn't exposed to script right now, is there anything stopping us changing the name if we did decide to expose it?
Right, we can change the name if desired.
Currently the spec defines an internal ServiceWorker state
parsed
:https://w3c.github.io/ServiceWorker/#dfn-state
The webidl
ServiceWorkerState
enum, however, does not define a matching value. The spec does not say what to do if the.state
getter is somehow called while the state isparsed
.We could explicitly throw, but I think it would be better to just reflect the state in the enum.