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

Issue 8312005: Ignore paths when matching patterns for extensions. (Closed)

Created:
9 years, 2 months ago by dcheng
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, abarth-chromium
Visibility:
Public.

Description

Ignore paths when matching patterns for extensions. BUG=94399 TEST=lots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108358

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Fix build. #

Patch Set 4 : Another approach. #

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : Use GURl instead of std::string. #

Patch Set 7 : Basic change for clipboardRead/clipboardWrite #

Patch Set 8 : . #

Patch Set 9 : Update all checks on the IO thread. #

Patch Set 10 : Minor cleanup #

Patch Set 11 : Fix silly typo. #

Total comments: 8

Patch Set 12 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -72 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_info_map.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_info_map.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -13 lines 0 comments Download
M chrome/common/extensions/url_pattern.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern.cc View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -8 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/mock_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/mock_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -3 lines 0 comments Download
M content/common/desktop_notification_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/notification_provider.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/notification_provider.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/shell_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M content/shell/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Aaron Boodman
This will break any feature that relies on the path part of URLPatterns. This at ...
9 years, 2 months ago (2011-10-16 03:28:04 UTC) #1
dcheng
On 2011/10/16 03:28:04, Aaron Boodman wrote: > This will break any feature that relies on ...
9 years, 2 months ago (2011-10-16 03:58:16 UTC) #2
Aaron Boodman
Oh, I'm sorry, I was perusing Rietveld and didn't notice this was a draft. I ...
9 years, 2 months ago (2011-10-16 05:02:50 UTC) #3
dcheng
On 2011/10/16 05:02:50, Aaron Boodman wrote: > Oh, I'm sorry, I was perusing Rietveld and ...
9 years, 2 months ago (2011-10-16 06:11:05 UTC) #4
Aaron Boodman
On Sat, Oct 15, 2011 at 11:11 PM, <dcheng@chromium.org> wrote: > On 2011/10/16 05:02:50, Aaron ...
9 years, 2 months ago (2011-10-16 06:19:55 UTC) #5
dcheng
Here's an updated patch that attempts that approach. Known issues I'd like to address if ...
9 years, 2 months ago (2011-10-16 06:46:56 UTC) #6
Mihai Parparita -not on Chrome
Rather than adding a boolean param (or even an enum) to URLPattern that is one ...
9 years, 2 months ago (2011-10-16 22:35:10 UTC) #7
dcheng
Well, before I can make any more progress on this patch, there's some fundamental issues ...
9 years, 2 months ago (2011-10-17 00:23:32 UTC) #8
jstritar
I'm not sure I understand the problem completely. Is it that webkit security origins apply ...
9 years, 2 months ago (2011-10-17 15:52:55 UTC) #9
dcheng
On 2011/10/17 15:52:55, jstritar wrote: > I'm not sure I understand the problem completely. Is ...
9 years, 2 months ago (2011-10-17 23:09:59 UTC) #10
Aaron Boodman
On 2011/10/17 00:23:32, dcheng wrote: > Well, before I can make any more progress on ...
9 years, 2 months ago (2011-10-18 04:24:35 UTC) #11
dcheng
On 2011/10/18 04:24:35, Aaron Boodman wrote: > On 2011/10/17 00:23:32, dcheng wrote: > > Well, ...
9 years, 2 months ago (2011-10-19 23:03:14 UTC) #12
Aaron Boodman
Regarding your question about AreBindingsEnabled() or whatever, I might have misunderstood/misremembered how that code works. ...
9 years, 2 months ago (2011-10-20 06:53:50 UTC) #13
Aaron Boodman
Oh, and regarding code organization: it looks really nice, thanks.
9 years, 2 months ago (2011-10-20 06:54:54 UTC) #14
dcheng
I haven't updated the patch yet, but in a previous version of this patch, abarth ...
9 years, 2 months ago (2011-10-20 18:39:53 UTC) #15
Aaron Boodman
On 2011/10/20 18:39:53, dcheng wrote: > in a previous version of this patch, abarth suggested ...
9 years, 2 months ago (2011-10-20 18:42:02 UTC) #16
Aaron Boodman
On 2011/10/20 18:42:02, Aaron Boodman wrote: > On 2011/10/20 18:39:53, dcheng wrote: > > in ...
9 years, 2 months ago (2011-10-24 15:08:52 UTC) #17
dcheng
I've updated the patch to use IsExtensionInProcess. I also ported the "background" permission to use ...
9 years, 1 month ago (2011-10-27 21:09:34 UTC) #18
dcheng
All the checks that currently happen on the IO thread use the "new" way now. ...
9 years, 1 month ago (2011-10-27 23:00:21 UTC) #19
dcheng
Oops. Fixed a really silly typo in chrome_content_browser_client. I think this should pass try jobs ...
9 years, 1 month ago (2011-10-28 20:20:45 UTC) #20
Aaron Boodman
http://codereview.chromium.org/8312005/diff/28002/chrome/browser/extensions/extension_info_map.cc File chrome/browser/extensions/extension_info_map.cc (right): http://codereview.chromium.org/8312005/diff/28002/chrome/browser/extensions/extension_info_map.cc#newcode129 chrome/browser/extensions/extension_info_map.cc:129: const GURL& origin, int process_id, How about adding GetByOrigin ...
9 years, 1 month ago (2011-10-31 23:57:11 UTC) #21
dcheng
http://codereview.chromium.org/8312005/diff/28002/chrome/browser/extensions/extension_info_map.cc File chrome/browser/extensions/extension_info_map.cc (right): http://codereview.chromium.org/8312005/diff/28002/chrome/browser/extensions/extension_info_map.cc#newcode129 chrome/browser/extensions/extension_info_map.cc:129: const GURL& origin, int process_id, On 2011/10/31 23:57:11, Aaron ...
9 years, 1 month ago (2011-11-01 18:18:02 UTC) #22
Aaron Boodman
http://codereview.chromium.org/8312005/diff/28002/chrome/browser/extensions/extension_info_map.cc File chrome/browser/extensions/extension_info_map.cc (right): http://codereview.chromium.org/8312005/diff/28002/chrome/browser/extensions/extension_info_map.cc#newcode129 chrome/browser/extensions/extension_info_map.cc:129: const GURL& origin, int process_id, On 2011/11/01 18:18:02, dcheng ...
9 years, 1 month ago (2011-11-01 19:20:57 UTC) #23
Aaron Boodman
lgtm (issues resolved offline)
9 years, 1 month ago (2011-11-01 21:50:39 UTC) #24
dcheng
http://codereview.chromium.org/8312005/diff/28002/chrome/common/extensions/url_pattern.h File chrome/common/extensions/url_pattern.h (right): http://codereview.chromium.org/8312005/diff/28002/chrome/common/extensions/url_pattern.h#newcode194 chrome/common/extensions/url_pattern.h:194: bool MatchesSecurityOrigin(const GURL& test) const; On 2011/10/31 23:57:11, Aaron ...
9 years, 1 month ago (2011-11-01 22:04:04 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/8312005/37001
9 years, 1 month ago (2011-11-01 22:04:20 UTC) #26
commit-bot: I haz the power
Presubmit check for 8312005-37001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-01 22:04:31 UTC) #27
dcheng
jam, do you mind taking a look at this patch for content/* approval? Thanks!
9 years, 1 month ago (2011-11-01 22:10:25 UTC) #28
jam
lgtm sorry for the delay, please feel free to IM me if I take more ...
9 years, 1 month ago (2011-11-02 19:04:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/8312005/37001
9 years, 1 month ago (2011-11-02 19:05:08 UTC) #30
commit-bot: I haz the power
9 years, 1 month ago (2011-11-02 23:49:05 UTC) #31
Change committed as 108358

Powered by Google App Engine
This is Rietveld 408576698