This is kind of a corner case, but I don't think the spec really handles it currently:
- open a random webpage
- w = window.open("./")
- sw = w.navigator.serviceWorker
- close the new tab from step 1
- sw.register("whatever.js");
In this case we're calling .register() for a window that is already closed. I'm intending to reject with InvalidStateErr, but I guess it would be nice to spec it.
This is kind of a corner case, but I don't think the spec really handles it currently:
In this case we're calling .register() for a window that is already closed. I'm intending to reject with InvalidStateErr, but I guess it would be nice to spec it.