[w3c/ServiceWorker] Should we specify behavior for using objects from detached contexts? (#1221)

Chromium has some tests which I'm looking to upstream to WPT that do something like:
```
var registration = iframe.contentWindow.getRegistration(...);
iframe.remove();
registration.unregister();  // expect InvalidStateError
```

Or

```
var worker = frame.contentWindow.navigator.serviceWorker.controller;
frame.remove();
worker.postMessage('');  // expect InvalidStateError
```

I was just going to upstream them, but discovered we originally didn't plan to make these WPT tests because the spec doesn't specify behavior for these detached window cases.

Should the spec specify behavior for these? Any concerns if we just upstream them as WPT tests now even if there might not be spec text? 

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

Received on Wednesday, 8 November 2017 21:23:28 UTC