Intent to implement and ship: CSP 'navigate-to' directive
155 views
Skip to first unread message
Andy Paicu
unread,
Mar 8, 2018, 7:36:18 AM3/8/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blink-dev
andy...@chromium.orghttps://w3c.github.io/webappsec-csp/#directive-navigate-to
The navigate-to directive restricts the URLs to which a document can initiate navigations by any means (a, form, window.location, window.open, etc.). This is an enforcement on what navigations this document initiates not on what this document is allowed to navigate to. If the form-action directive is present, the navigate-to directive will not act on navigations that are form submissions.
This directive allows developers control using CSP over navigations that a document initiates. It has many security applications (e.g. ensuring the ads landing page is correct).
Firefox: No public signals
Edge: No public signals
Safari: No public signals
Web developers: Positive
While I have no particular links I can point to for particular browsers this has been discussed at TPAC and during a call, on the webappsec mailing list and in the explainer document provided and the feedback is pretty positive.
The directive does not fall back on `default-src` and it is ignored when `form-action` is present and relevant. This means that existing content won't be affected.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Andy Paicu, blink-dev
Can you provide any details on the positive signals from web developers? In particular, what developers have actually tried using this directive (I assume it's behind a flag now?) and can confirm that they intend to deploy use of it to production?
Otherwise it looks reasonable to me. Obviously we'd like to have more concrete signals from the other browsers, but I trust that there's been good discussion in the WG. Perhaps it's worth filing some bugs for vendors who you think are most likely to be next to implement? I imagine they're likely all waiting to see who really intends to use this, before deciding what priority to give to implementation.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Rick Byers, blink-dev
Hello Rick,
The feature is WIP and not fully implemented yet but there has been significant discussion with the Google ads teams to use this feature in order to enforce the landing page of ads.
Also some Google ISE members have expressed their approval of the directive and that there could be potential use for it.
Regards,
Andy
Rick Byers
unread,
Mar 23, 2018, 5:11:31 PM3/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Andy Paicu, blink-dev
Thanks for the details Andy.
Enabling ad networks to reduce the user impact of bad/malicious ads is IMHO significant in terms of "moving the web forward" and so outweighs for me the interop risk of not having concrete signals from other browsers here.
Also we've seen from recent sandbox flag additions that when a major ad network starts using a feature to lock down what ads can do, this creates a significant incentive for the other browsers to implement the feature as well (no browser wants to be the one with a worse user experience around ads). So combined with the spec and test work, this seems like something that's likely to become interoperable to me.
LGTM1
Chris Harrelson
unread,
Mar 23, 2018, 5:12:46 PM3/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Presumably this is because the implementation isn't done yet, but if there are any failures left after that, can you make sure there are bugs filed for them?