Skip to content
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

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

Conversation

odejesush
Copy link

This change adds steps for initializing workers with a Feature Policy
inherited from the owner documents.

This change adds steps for initializing workers with a Feature Policy
inherited from the owner documents.
@yoavweiss
Copy link
Contributor

@odejesush Could you join the WICG to appease the IPR bots? Thanks!

@odejesush
Copy link
Author

Thank you. I thought that the issue was that my GitHub account was not linked to my W3C account.

@yoavweiss
Copy link
Contributor

@odejesush potentially both, but joining is the first step

@odejesush
Copy link
Author

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

@annevk
Copy link
Member

annevk commented Oct 29, 2018

I don't think we should be inheriting policies. They should declare their own. See also w3c/webappsec-csp#336.

cc @wanderview

@wanderview
Copy link
Member

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.

@clelland
Copy link
Collaborator

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 :) )

@odejesush
Copy link
Author

Thank you for the heads up on the discussion around this @annevk and @wanderview. I subscribed to the linked issue to follow it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants