New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how does service worker interact with html imports? #1095
Comments
I'm not very familiar with HTML Imports. I think all our SW + HTML Imports test coverage is in this file: |
I am not very familiar with Service Worker either ;) As FWIW, So using any service worker APIs in the master document or imports doesn't make any difference basically - though CORS handling etc. could have some subtlety. So answers would be (be careful - I haven't verified):
I don't think it's worth spending time to update specs for HTML Imports or Service Worker for clarification of this, but do think it is enough to let the current Chrome behavior be de facto standard (as no other vendor cares). @wanderview do you have any particular concern (e.g. security) for this uncertainty of HTML Imports + Service Worker integration? |
No. It just caught my eye because I know we have had poor support for the "inherited service worker" case with <iframe srcdoc>. It got me wondering how html imports works in chrome and if that behavior matched what people would expect. If the answer to (1) is "yes", then I have a follow-on question: If |
FWIW I agree with @TakayoshiKochi's answers. An HTML import isn't a separate client like an iframe. |
Closing, especially given that HTML imports are effectively deprecated. |
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:
navigator.serviceWorker.register()
? Do the scope rules and restrictions get applied based on the import URL or the master document URL?The text was updated successfully, but these errors were encountered: