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

Issue 8409006: Take script URLs into account when applying script content settings. (Closed)

Created:
9 years, 1 month ago by marja
Modified:
9 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, markusheintz
Visibility:
Public.

Description

Take script URLs into account when applying script content settings. Transmit script content settings to the renderer. Use the script URL as the secondary URL for the content setting rules. BUG=90840 TEST=ChromeRenderViewTest.ContentSettings(Allow|Block)Scripts Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109005 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109036 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109213

Patch Set 1 #

Patch Set 2 : Refactoring. #

Patch Set 3 : Rebased. #

Patch Set 4 : Test fixes. #

Patch Set 5 : Tests. #

Patch Set 6 : Cleanup. #

Total comments: 10

Patch Set 7 : Code review. #

Patch Set 8 : Cleanup #

Patch Set 9 : Rebased. #

Patch Set 10 : Test fix. #

Total comments: 4

Patch Set 11 : Build warning fix. #

Patch Set 12 : Code review. #

Total comments: 4

Patch Set 13 : Code review. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -65 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/content_settings_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/content_settings_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/content_settings.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/content_settings.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -8 lines 2 comments Download
M chrome/renderer/content_settings_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +55 lines, -23 lines 0 comments Download
M chrome/renderer/content_settings_observer_browsertest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +91 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
marja
Hi Jochen, this is the CL I was talking about.
9 years, 1 month ago (2011-11-02 09:16:01 UTC) #1
jochen (gone - plz use gerrit)
http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/chrome_render_view_observer.cc#newcode420 chrome/renderer/chrome_render_view_observer.cc:420: WebFrame* frame, bool enabled_per_settings, nit. each parameter on its ...
9 years, 1 month ago (2011-11-02 09:25:05 UTC) #2
Bernhard Bauer
http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/chrome_render_process_observer.h File chrome/renderer/chrome_render_process_observer.h (right): http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/chrome_render_process_observer.h#newcode79 chrome/renderer/chrome_render_process_observer.h:79: ContentSettingsForOneType content_setting_rules_[CONTENT_SETTINGS_NUM_TYPES]; I actually want to get rid of ...
9 years, 1 month ago (2011-11-02 09:57:14 UTC) #3
jochen (gone - plz use gerrit)
http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc#newcode266 chrome/renderer/content_settings_observer.cc:266: AllowContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT)) { On 2011/11/02 09:57:14, Bernhard Bauer wrote: > ...
9 years, 1 month ago (2011-11-02 10:40:48 UTC) #4
Bernhard Bauer
On 2011/11/02 10:40:48, jochen wrote: > http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc > File chrome/renderer/content_settings_observer.cc (right): > > http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc#newcode266 > ...
9 years, 1 month ago (2011-11-02 10:51:18 UTC) #5
marja
Thanks for comments! http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/chrome_render_process_observer.h File chrome/renderer/chrome_render_process_observer.h (right): http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/chrome_render_process_observer.h#newcode79 chrome/renderer/chrome_render_process_observer.h:79: ContentSettingsForOneType content_setting_rules_[CONTENT_SETTINGS_NUM_TYPES]; On 2011/11/02 09:57:14, Bernhard ...
9 years, 1 month ago (2011-11-02 14:46:35 UTC) #6
jochen (gone - plz use gerrit)
http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc#newcode266 chrome/renderer/content_settings_observer.cc:266: AllowContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT)) { right
9 years, 1 month ago (2011-11-02 19:19:00 UTC) #7
marja
http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): http://codereview.chromium.org/8409006/diff/8001/chrome/renderer/content_settings_observer.cc#newcode266 chrome/renderer/content_settings_observer.cc:266: AllowContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT)) { On 2011/11/02 19:19:00, jochen wrote: > right ...
9 years, 1 month ago (2011-11-02 22:16:01 UTC) #8
jochen (gone - plz use gerrit)
http://codereview.chromium.org/8409006/diff/14001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): http://codereview.chromium.org/8409006/diff/14001/chrome/renderer/content_settings_observer.cc#newcode73 chrome/renderer/content_settings_observer.cc:73: return CONTENT_SETTING_DEFAULT; what if the default is to block ...
9 years, 1 month ago (2011-11-03 15:55:09 UTC) #9
marja
http://codereview.chromium.org/8409006/diff/14001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): http://codereview.chromium.org/8409006/diff/14001/chrome/renderer/content_settings_observer.cc#newcode73 chrome/renderer/content_settings_observer.cc:73: return CONTENT_SETTING_DEFAULT; On 2011/11/03 15:55:09, jochen wrote: > what ...
9 years, 1 month ago (2011-11-03 16:28:39 UTC) #10
jochen (gone - plz use gerrit)
lgtm assuming trybot happiness
9 years, 1 month ago (2011-11-03 16:31:15 UTC) #11
Bernhard Bauer
http://codereview.chromium.org/8409006/diff/12025/chrome/browser/content_settings/content_settings_utils.cc File chrome/browser/content_settings/content_settings_utils.cc (right): http://codereview.chromium.org/8409006/diff/12025/chrome/browser/content_settings/content_settings_utils.cc#newcode206 chrome/browser/content_settings/content_settings_utils.cc:206: sender->Send(new ChromeViewMsg_SetContentSettingRules(rules)); Could you change this method so that ...
9 years, 1 month ago (2011-11-03 22:18:38 UTC) #12
marja
http://codereview.chromium.org/8409006/diff/12025/chrome/browser/content_settings/content_settings_utils.cc File chrome/browser/content_settings/content_settings_utils.cc (right): http://codereview.chromium.org/8409006/diff/12025/chrome/browser/content_settings/content_settings_utils.cc#newcode206 chrome/browser/content_settings/content_settings_utils.cc:206: sender->Send(new ChromeViewMsg_SetContentSettingRules(rules)); On 2011/11/03 22:18:38, Bernhard Bauer wrote: > ...
9 years, 1 month ago (2011-11-07 09:32:48 UTC) #13
Bernhard Bauer
LGTM, with an additional cleanup suggestion: http://codereview.chromium.org/8409006/diff/24001/chrome/renderer/content_settings_observer.h File chrome/renderer/content_settings_observer.h (right): http://codereview.chromium.org/8409006/diff/24001/chrome/renderer/content_settings_observer.h#newcode104 chrome/renderer/content_settings_observer.h:104: // Stores if ...
9 years, 1 month ago (2011-11-08 09:32:52 UTC) #14
marja
Thanks for the review! http://codereview.chromium.org/8409006/diff/24001/chrome/renderer/content_settings_observer.h File chrome/renderer/content_settings_observer.h (right): http://codereview.chromium.org/8409006/diff/24001/chrome/renderer/content_settings_observer.h#newcode104 chrome/renderer/content_settings_observer.h:104: // Stores if loading of ...
9 years, 1 month ago (2011-11-08 09:39:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8409006/24001
9 years, 1 month ago (2011-11-08 09:39:51 UTC) #16
commit-bot: I haz the power
Change committed as 109005
9 years, 1 month ago (2011-11-08 10:49:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8409006/24001
9 years, 1 month ago (2011-11-08 15:03:56 UTC) #18
commit-bot: I haz the power
Change committed as 109036
9 years, 1 month ago (2011-11-08 16:09:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8409006/24001
9 years, 1 month ago (2011-11-09 09:07:07 UTC) #20
commit-bot: I haz the power
9 years, 1 month ago (2011-11-09 10:02:47 UTC) #21
Change committed as 109213

Powered by Google App Engine
This is Rietveld 408576698