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

Issue 8676020: Detect invalid content settings pattern that were not detected yet. (Closed)

Created:
9 years, 1 month ago by markusheintz_
Modified:
9 years, 1 month ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Don't allow the following content settings patterns: - Patterns with file scheme and non empty host - File patterns that user a wildcard '*' symbol in their path - "file:///" - Patterns with an IP address and a domain wildcard. Add tests to check that "[*.]", "http://[*.]", ... are valid patterns. BUG=104414 TEST=ContentSettingsPattern* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111546

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : Move validation checks to Builder.Validate method #

Patch Set 4 : Move one more check to the Validate method #

Total comments: 4

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -31 lines) Patch
M chrome/common/content_settings_pattern.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/content_settings_pattern.cc View 1 2 3 4 chunks +27 lines, -11 lines 0 comments Download
M chrome/common/content_settings_pattern_parser.cc View 1 2 3 4 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/common/content_settings_pattern_unittest.cc View 1 2 3 4 3 chunks +22 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
markusheintz_
Please review my CL. Thanks.
9 years, 1 month ago (2011-11-24 15:11:42 UTC) #1
Bernhard Bauer
There are multiple changes in this CL. Can you update the description to be a ...
9 years, 1 month ago (2011-11-24 15:50:32 UTC) #2
markusheintz_
http://codereview.chromium.org/8676020/diff/6005/chrome/common/content_settings_pattern.h File chrome/common/content_settings_pattern.h (right): http://codereview.chromium.org/8676020/diff/6005/chrome/common/content_settings_pattern.h#newcode223 chrome/common/content_settings_pattern.h:223: // the pattern parts are not valid. On 2011/11/24 ...
9 years, 1 month ago (2011-11-24 16:37:51 UTC) #3
Bernhard Bauer
LGTM.
9 years, 1 month ago (2011-11-24 16:58:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markusheintz@chromium.org/8676020/5002
9 years, 1 month ago (2011-11-24 17:17:43 UTC) #5
commit-bot: I haz the power
9 years, 1 month ago (2011-11-24 19:01:32 UTC) #6
Change committed as 111546

Powered by Google App Engine
This is Rietveld 408576698