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

Issue 2208463002: [HBD] Implement site-origin exceptions (Closed)

Created:
4 years, 4 months ago by trizzofo
Modified:
4 years, 4 months ago
CC:
chromium-reviews, jam, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@hbd_disableplugincache
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[HBD] Implement site-origin exceptions If PreferHtmlOverPlugins feature is enabled, use "Plugins" Content Settings exceptions to decide if Flash should be advertised or not. Here is more information about HTML5 by Default: go/hbd-design-doc BUG=626728 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/c56e1750274cbd7efb5cba947421ec7c36379f3a Cr-Commit-Position: refs/heads/master@{#413842}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebase #

Patch Set 3 : Refactor GetPluginContentSetting out to a new file #

Total comments: 6

Patch Set 4 : Changes per tommycli@'s comments #

Total comments: 8

Patch Set 5 : Changes per tommycli@'s comments #

Total comments: 2

Patch Set 6 : Change per tommycli@'s comment #

Total comments: 2

Patch Set 7 : DCHECK to DCHECK_EQ and include fix #

Total comments: 2

Patch Set 8 : Rebase #

Patch Set 9 : Changes per bauerb@'s and tommycli@'s comments #

Patch Set 10 : Remove changes from chrome_plugin_service_filter.h and render_frame_message_filter.cc #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -96 lines) Patch
M chrome/browser/plugins/chrome_plugin_service_filter.cc View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -6 lines 0 comments Download
A chrome/browser/plugins/plugin_filter_utils.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/plugins/plugin_filter_utils.cc View 1 2 3 4 5 6 1 chunk +94 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.h View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 4 chunks +3 lines, -75 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter_unittest.cc View 1 2 3 4 chunks +11 lines, -8 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 75 (46 generated)
trizzofo
tommycli, PTAL
4 years, 4 months ago (2016-08-02 20:15:44 UTC) #3
tommycli
https://codereview.chromium.org/2208463002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2208463002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode127 chrome/browser/plugins/chrome_plugin_service_filter.cc:127: std::unique_ptr<base::Value> specific_setting = I think you need exactly the ...
4 years, 4 months ago (2016-08-02 20:30:17 UTC) #4
trizzofo
https://codereview.chromium.org/2208463002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2208463002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode127 chrome/browser/plugins/chrome_plugin_service_filter.cc:127: std::unique_ptr<base::Value> specific_setting = On 2016/08/02 20:30:17, tommycli wrote: > ...
4 years, 4 months ago (2016-08-03 00:23:06 UTC) #5
tommycli
https://codereview.chromium.org/2208463002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2208463002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode127 chrome/browser/plugins/chrome_plugin_service_filter.cc:127: std::unique_ptr<base::Value> specific_setting = On 2016/08/03 00:23:06, trizzofo wrote: > ...
4 years, 4 months ago (2016-08-03 00:34:21 UTC) #6
trizzofo
tommycli, ptal. Thanks!
4 years, 4 months ago (2016-08-06 01:33:05 UTC) #14
tommycli
Overall very close here. https://codereview.chromium.org/2208463002/diff/60001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2208463002/diff/60001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode131 chrome/browser/plugins/chrome_plugin_service_filter.cc:131: std::unique_ptr<base::Value> specific_setting = This call ...
4 years, 4 months ago (2016-08-08 16:52:20 UTC) #17
trizzofo
https://codereview.chromium.org/2208463002/diff/60001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2208463002/diff/60001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode131 chrome/browser/plugins/chrome_plugin_service_filter.cc:131: std::unique_ptr<base::Value> specific_setting = On 2016/08/08 16:52:20, tommycli wrote: > ...
4 years, 4 months ago (2016-08-08 20:31:31 UTC) #20
tommycli
https://codereview.chromium.org/2208463002/diff/80001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2208463002/diff/80001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode133 chrome/browser/plugins/chrome_plugin_service_filter.cc:133: ContentSetting plugin_setting; initialize with ContentSetting plugin_setting = CONTENT_SETTING_DEFAULT; https://codereview.chromium.org/2208463002/diff/80001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode135 ...
4 years, 4 months ago (2016-08-08 20:38:07 UTC) #21
trizzofo
I'm still unsure about why and how the plugin_url is used in GetPluginContentSetting. We should ...
4 years, 4 months ago (2016-08-08 21:40:20 UTC) #24
tommycli
LGTM except below. Thanks https://codereview.chromium.org/2208463002/diff/100001/chrome/browser/plugins/plugin_filter_utils.cc File chrome/browser/plugins/plugin_filter_utils.cc (right): https://codereview.chromium.org/2208463002/diff/100001/chrome/browser/plugins/plugin_filter_utils.cc#newcode86 chrome/browser/plugins/plugin_filter_utils.cc:86: if (uses_default_content_setting) nit: this needs ...
4 years, 4 months ago (2016-08-08 21:45:55 UTC) #27
trizzofo
bauerb, ptal. We are now fetching the plugin content setting given the main frame origin ...
4 years, 4 months ago (2016-08-08 22:21:14 UTC) #31
Bernhard Bauer
On 2016/08/08 22:21:14, trizzofo wrote: > bauerb, ptal. > > We are now fetching the ...
4 years, 4 months ago (2016-08-09 10:36:47 UTC) #34
tommycli
On 2016/08/09 10:36:47, Bernhard Bauer wrote: > On 2016/08/08 22:21:14, trizzofo wrote: > > bauerb, ...
4 years, 4 months ago (2016-08-09 17:15:46 UTC) #35
trizzofo
On 2016/08/09 17:15:46, tommycli wrote: > On 2016/08/09 10:36:47, Bernhard Bauer wrote: > > On ...
4 years, 4 months ago (2016-08-11 18:49:25 UTC) #36
Bernhard Bauer
On 2016/08/11 18:49:25, trizzofo wrote: > On 2016/08/09 17:15:46, tommycli wrote: > > On 2016/08/09 ...
4 years, 4 months ago (2016-08-13 12:02:42 UTC) #37
trizzofo
One issue I can think of is that, if the user allows an origin, but ...
4 years, 4 months ago (2016-08-15 22:32:01 UTC) #38
Bernhard Bauer
On 2016/08/15 22:32:01, trizzofo wrote: > One issue I can think of is that, if ...
4 years, 4 months ago (2016-08-15 23:27:15 UTC) #39
trizzofo
On 2016/08/15 23:27:15, Bernhard Bauer wrote: > On 2016/08/15 22:32:01, trizzofo wrote: > > One ...
4 years, 4 months ago (2016-08-16 00:38:25 UTC) #40
tommycli
On 2016/08/16 00:38:25, trizzofo wrote: > On 2016/08/15 23:27:15, Bernhard Bauer wrote: > > On ...
4 years, 4 months ago (2016-08-16 00:44:51 UTC) #41
Bernhard Bauer
On 2016/08/16 00:38:25, trizzofo wrote: > On 2016/08/15 23:27:15, Bernhard Bauer wrote: > > On ...
4 years, 4 months ago (2016-08-18 18:06:07 UTC) #42
tommycli
On 2016/08/18 18:06:07, Bernhard Bauer wrote: > On 2016/08/16 00:38:25, trizzofo wrote: > > On ...
4 years, 4 months ago (2016-08-18 18:14:39 UTC) #43
trizzofo
Thanks! I'll pass the |policy_url| twice then. clamy, ptal at render_frame_message_filter.cc. https://codereview.chromium.org/2208463002/diff/140001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): ...
4 years, 4 months ago (2016-08-18 19:40:31 UTC) #56
Bernhard Bauer
lgtm
4 years, 4 months ago (2016-08-18 20:04:29 UTC) #57
trizzofo
clamy, ptal. Thanks!
4 years, 4 months ago (2016-08-19 22:25:12 UTC) #60
trizzofo
clamy, ptal. Thanks!
4 years, 4 months ago (2016-08-22 23:59:00 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2208463002/280001
4 years, 4 months ago (2016-08-23 21:24:06 UTC) #68
trizzofo
clamy, I moved content/browser/frame_host/render_frame_message_filter.cc changes to another issue, so we don't need your review anymore. ...
4 years, 4 months ago (2016-08-23 21:27:37 UTC) #69
commit-bot: I haz the power
Committed patchset #11 (id:280001)
4 years, 4 months ago (2016-08-23 21:31:00 UTC) #73
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 21:33:10 UTC) #75
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/c56e1750274cbd7efb5cba947421ec7c36379f3a
Cr-Commit-Position: refs/heads/master@{#413842}

Powered by Google App Engine
This is Rietveld 408576698