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

Issue 13699007: Provide a mechanism to the decl. WebRequest API to match URLs without the query against a RegEx (Closed)

Created:
7 years, 8 months ago by battre
Modified:
7 years, 8 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, vabr (Chromium)
Visibility:
Public.

Description

Provide a mechanism to the decl. WebRequest API to match URLs without the query against a RegEx If you look for URLs that contain example[1-9].com you do not want to trigger actions for http://foobar.com?url=example1.com. For this reason the CL introduces a new mechanism to evaluate RegEx only on the URL without the query string. BUG=228852 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193714

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments #

Patch Set 3 : Renamed strippedUrlMatches to originAndPathMatches #

Patch Set 4 : Merged with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -15 lines) Patch
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/events.json View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/common/matcher/regex_set_matcher.h View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/matcher/regex_set_matcher.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/matcher/url_matcher.h View 1 2 6 chunks +12 lines, -0 lines 0 comments Download
M extensions/common/matcher/url_matcher.cc View 1 2 3 13 chunks +79 lines, -15 lines 0 comments Download
M extensions/common/matcher/url_matcher_constants.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/matcher/url_matcher_constants.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/matcher/url_matcher_factory.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/matcher/url_matcher_unittest.cc View 1 2 3 2 chunks +46 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
battre
Hi Yoyo, could you please review this CL? Thanks a lot! Dominic
7 years, 8 months ago (2013-04-08 18:04:28 UTC) #1
Yoyo Zhou
LGTM https://codereview.chromium.org/13699007/diff/1/chrome/common/extensions/api/events.json File chrome/common/extensions/api/events.json (right): https://codereview.chromium.org/13699007/diff/1/chrome/common/extensions/api/events.json#newcode274 chrome/common/extensions/api/events.json:274: "strippedUrlMatches": { This is not my favorite name ...
7 years, 8 months ago (2013-04-08 18:20:43 UTC) #2
battre
https://codereview.chromium.org/13699007/diff/1/chrome/common/extensions/api/events.json File chrome/common/extensions/api/events.json (right): https://codereview.chromium.org/13699007/diff/1/chrome/common/extensions/api/events.json#newcode274 chrome/common/extensions/api/events.json:274: "strippedUrlMatches": { On 2013/04/08 18:20:43, Yoyo Zhou wrote: > ...
7 years, 8 months ago (2013-04-09 12:22:23 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/13699007/12001
7 years, 8 months ago (2013-04-11 16:44:58 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=102381
7 years, 8 months ago (2013-04-11 18:54:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/13699007/12001
7 years, 8 months ago (2013-04-11 18:56:45 UTC) #6
commit-bot: I haz the power
7 years, 8 months ago (2013-04-11 20:04:07 UTC) #7
Message was sent while issue was closed.
Change committed as 193714

Powered by Google App Engine
This is Rietveld 408576698