Chromium Code Reviews
DescriptionContentSecurityPolicy: Fix bug when CSPSource host-part = "*"
There were two problems. The first one was that when the host-part was
"*" then CSPSource::IsSchemeOnly() returned true, even if there was a
path or a port to enforce. For instance when source-expression =
'http://*:111' then 'http://a.com:222' was allowed.
The second problem was that in CSPSource::hostmatches(), the
host-part == '*' case was not handled.
This patch adds tests for these special cases.
BUG=682673
Review-Url: https://codereview.chromium.org/2646773002
Cr-Commit-Position: refs/heads/master@{#445417}
Committed: https://chromium.googlesource.com/chromium/src/+/8a8b6c2b28a210ca37a500d7e95572ce6126994d
Patch Set 1 : ContentSecurityPolicy: Fix bug when CSPSource host-part = "*" #Patch Set 2 : Rephrase comments. #
Messages
Total messages: 19 (15 generated)
|
||||||||||||||||||||||||||||