Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Issue 2426733002: Check for blacklist wildcards before creating GURL (Closed)

Created:
4 years, 2 months ago by brettw
Modified:
4 years, 2 months ago
Reviewers:
pastarmovj
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -18 lines) Patch
M components/policy/core/browser/url_blacklist_manager.cc View 3 chunks +14 lines, -18 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
brettw
timing out -> pastarmovj
4 years, 2 months ago (2016-10-19 19:34:18 UTC) #8
pastarmovj
lgtm. One question for you though - what does "timing out -> pastarmovj" mean. At ...
4 years, 2 months ago (2016-10-20 08:54:49 UTC) #9
brettw
On 2016/10/20 08:54:49, pastarmovj wrote: > lgtm. > > One question for you though - ...
4 years, 2 months ago (2016-10-20 16:34:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2426733002/1
4 years, 2 months ago (2016-10-20 16:48:26 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-20 18:16:17 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:20:18 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/455784dee3dea2a618d4e4d1e6c1003ed55cd6b6
Cr-Commit-Position: refs/heads/master@{#426532}

Powered by Google App Engine
This is Rietveld 408576698