Skip to content

Add Feature Policy for workers - #174

Open
odejesush wants to merge 1 commit into
w3c:gh-pagesfrom
odejesush:workers
Open

Add Feature Policy for workers#174
odejesush wants to merge 1 commit into
w3c:gh-pagesfrom
odejesush:workers

Conversation

@odejesush

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

@odejesush

Copy link
Copy Markdown
Author

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

@yoavweiss

Copy link
Copy Markdown
Contributor

@odejesush potentially both, but joining is the first step

@odejesush

Copy link
Copy Markdown
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

annevk commented Oct 29, 2018

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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