-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add Feature Policy for workers #174
base: gh-pages
Are you sure you want to change the base?
Conversation
This change adds steps for initializing workers with a Feature Policy inherited from the owner documents.
@odejesush Could you join the WICG to appease the IPR bots? Thanks! |
Thank you. I thought that the issue was that my GitHub account was not linked to my W3C account. |
@odejesush potentially both, but joining is the first step |
All right, I think that my account should be good to go. I'm part of the WICG and my GitHub account is linked. Thanks @yoavweiss |
I don't think we should be inheriting policies. They should declare their own. See also w3c/webappsec-csp#336. cc @wanderview |
Thanks @annevk. I think what I wrote in w3c/webappsec-csp#336 (comment) would apply here as well. Just my opinion, of course, though. I would really like us to define some over-arching design guidelines for how inheritance should work in the web platform. For example, origin/policies are inherited via local URLs like blob:, etc. Clients (iframes/workers/etc) with a unique URL get their own origin/policies irrespective from their parent. Having every API do their own thing makes for a very confusing API and brittle implementation. I think at TPAC it was suggested we could request some guidance from the w3c TAG on this architectural issue. |
I would certainly be more comfortable with shared workers, especially, having to declare their own policies, rather than being inheriting from the page which happens to create them first. I used to believe that dedicated workers needed to be considered subresources, but the TPAC discussions managed to convince me that it's better to be consistent and treat all workers as separate resources. (The jury's still out on worklets, though :) ) |
Thank you for the heads up on the discussion around this @annevk and @wanderview. I subscribed to the linked issue to follow it further. |
This change adds steps for initializing workers with a Feature Policy
inherited from the owner documents.