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

Issue 8538004: 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
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., jochen (gone - plz use gerrit)
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. This CL contains the functionality of the following 2 CLs, hopefully without performance regressions: http://codereview.chromium.org/8409006 http://codereview.chromium.org/8498007 BUG=90840 TEST=ChromeRenderViewTest.ContentSettings(Allow|Block)Scripts Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110286

Patch Set 1 #

Patch Set 2 : Cleanup + rebase. #

Total comments: 4

Patch Set 3 : The version that broke the perf. #

Patch Set 4 : The better version again. #

Patch Set 5 : Code review. #

Patch Set 6 : AllowScript += cache #

Patch Set 7 : AllowScript -= cache #

Total comments: 4

Patch Set 8 : AllowScript += cache again, code review comments. #

Patch Set 9 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -473 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/content_settings_default_provider.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_default_provider.cc View 1 3 5 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/content_settings/content_settings_utils.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/content_settings_utils.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.h View 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 2 chunks +0 lines, -27 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 4 chunks +59 lines, -86 lines 0 comments Download
M chrome/browser/content_settings/mock_settings_observer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -17 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/common/content_settings.h View 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/common/content_settings.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/common/render_messages.h View 3 chunks +8 lines, -30 lines 0 comments Download
M chrome/common/render_messages.cc View 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.h View 3 chunks +4 lines, -10 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 3 5 chunks +8 lines, -53 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.h View 1 2 3 4 5 7 5 chunks +15 lines, -36 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 2 3 4 5 6 7 8 7 chunks +78 lines, -98 lines 0 comments Download
M chrome/renderer/content_settings_observer_browsertest.cc View 1 2 3 4 5 6 7 8 7 chunks +91 lines, -17 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
marja
And this is the CL I e-mailed about.
9 years, 1 month ago (2011-11-11 12:30:09 UTC) #1
Bernhard Bauer
It would be helpful to have a comparison of the old CL (i.e. http://codereview.chromium.org/8409006 + ...
9 years, 1 month ago (2011-11-11 13:00:52 UTC) #2
marja
On 2011/11/11 13:00:52, Bernhard Bauer wrote: > It would be helpful to have a comparison ...
9 years, 1 month ago (2011-11-11 13:13:56 UTC) #3
marja
http://codereview.chromium.org/8538004/diff/1001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): http://codereview.chromium.org/8538004/diff/1001/chrome/renderer/content_settings_observer.cc#newcode70 chrome/renderer/content_settings_observer.cc:70: return rules[0].setting; On 2011/11/11 13:00:53, Bernhard Bauer wrote: > ...
9 years, 1 month ago (2011-11-11 14:25:09 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/8538004/diff/14001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): http://codereview.chromium.org/8538004/diff/14001/chrome/renderer/content_settings_observer.cc#newcode58 chrome/renderer/content_settings_observer.cc:58: return frame->document().url(); Ooh, is it on purpose that we ...
9 years, 1 month ago (2011-11-15 09:29:35 UTC) #5
marja
Hmm, it seems that the cache was a good idea after all; the page cyclers ...
9 years, 1 month ago (2011-11-15 11:49:58 UTC) #6
Bernhard Bauer
LGTM.
9 years, 1 month ago (2011-11-16 09:26:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8538004/16001
9 years, 1 month ago (2011-11-16 09:31:59 UTC) #8
commit-bot: I haz the power
Can't apply patch for file chrome/browser/chrome_content_browser_client.cc. While running patch -p1 --forward --force; patching file chrome/browser/chrome_content_browser_client.cc ...
9 years, 1 month ago (2011-11-16 09:32:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/8538004/15026
9 years, 1 month ago (2011-11-16 09:46:47 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-16 11:57:01 UTC) #11
Change committed as 110286

Powered by Google App Engine
This is Rietveld 408576698