DescriptionCheck for blacklist wildcards before creating GURL
The policy blacklist parser used to first check for "file" schemes first as a
special case before checking for wildcard hosts like "http://*", and the file
special-case had it's own wildcard special casing.
I am working on making "*" an invalid host character, and with this future
patch, creating a GURL of "file://*" will fail. This change moves the wildcard
handling above the file scheme checking so it will work regardless of whether
"*" is a valid host character or not.
The particular structure of this code looks like a result of adding the
wildcard handling ( https://codereview.chromium.org/1692503002/ ) after the
file handling was already in place.
BUG=652808
Committed: https://crrev.com/455784dee3dea2a618d4e4d1e6c1003ed55cd6b6
Cr-Commit-Position: refs/heads/master@{#426532}
Patch Set 1 #
Messages
Total messages: 16 (10 generated)
|