DescriptionSupport whitelisting to handle insecure origins as trustworthy origins
The whitelist is given and initialized via
--unsafety-treat-insecure-origin-as-secure command-line flag. This needs to be specified with --user-data-dir
to take effect.
Specifying this flag shows a security banner:
"You are using unsupported command-line flag: ....
Stability and security will suffer."
Depends on blink-side patch:
https://codereview.chromium.org/1082173003/
BUG=441605
TEST=manual (to see SW on http works with command-line flag & the security banner is shown)
TEST=unit_tests:SecureOriginWhiteList.UnsafetyTreatInsecureOriginAsSecure
TEST=content_unittests:URLSchemesTest.IsOriginSecure
TEST=content_unittests:ServiceWorkerDispatcherHostTest.*
Committed: https://crrev.com/aaff1f6f8942f714a85a097228dd1e0fb13a36b8
Cr-Commit-Position: refs/heads/master@{#327875}
Patch Set 1 : #Patch Set 2 : added test, added IsOriginSecure plumbing etc #
Total comments: 14
Patch Set 3 : moving IsOriginSecure from //chrome to //content #Patch Set 4 : fixed SW tests #Patch Set 5 : fix android build #Patch Set 6 : rebase #Patch Set 7 : Split the change into two #Patch Set 8 : rebase #Patch Set 9 : #Patch Set 10 : #
Total comments: 2
Patch Set 11 : #
Total comments: 4
Patch Set 12 : added more tests #Messages
Total messages: 38 (8 generated)
|