DescriptionCSP: Adding the 'upgrade-insecure-requests' directive.
This is an initial implementation of the upgrade mechanism specified
in https://w3c.github.io/webappsec/specs/upgrade/. We don't have
layout tests, as the upgrade intentionally doesn't touch the port,
and we use excitingly interesting ports like 8080 and 8443, which
mean that the resources won't load even after upgrade.
Test coverage is provided by unit tests which verify that CSP sets
the InsecureContentPolicy is correctly set for a document based on
a given policy, and that RequestFetcher and DOMWebSocket use that
policy information to upgrade URLs.
The new directive is behind the "experimental csp features" flag,
and is nowhere near shipping.
Intent to Implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/rjeFL53OV4I/_NvMh0_qsWEJ
BUG=455674
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189646
Patch Set 1 #
Total comments: 12
Patch Set 2 : Feedback. #
Total comments: 3
Patch Set 3 : Rearranging. #
Total comments: 5
Patch Set 4 : unittest #
Total comments: 5
Patch Set 5 : WebSockets + Tests. #Messages
Total messages: 26 (4 generated)
|