[w3c/ServiceWorker] how does service worker interact with html imports? (#1095)

I know chrome is the only browser to implement html imports at the moment, but I found myself wondering a bit how it interacts with service workers:

1. Is the service worker controller inherited from the master document similar to the inherited controller for srcdoc iframes?
2. Or is each imported document considered a separate non-subresource load and controlled independently?  I assume this is not the case since window.navigator.serviceWorker.controller would be inconsistent across the documents.
3. I assume all the imported documents map to the same Client since they have a shared global.  What is the creation URL of that Client?  I assume its the master document URL.
4. What happens if an import calls `navigator.serviceWorker.register()`? Do the scope rules and restrictions get applied based on the import URL or the master document URL?

-- 
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/1095

Received on Wednesday, 29 March 2017 03:12:47 UTC