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

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)

Created:
4 years, 2 months ago by tommycli
Modified:
4 years, 2 months ago
CC:
alexmos, chromium-reviews, dcheng, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. This patch does two things: 1) Blocks all non-HTTP and non-FILE plugin loads within plugin_utils.cc (unless the user has chosen ALLOW) 2) Fixes FILE plugin loads. Previously, FILE origins were getting lost in the GetPlugins, since WebSecurityOrigin serializes FILE origins to "null". This meant that content settings exceptions did not work correctly for the plugin list retrieval. This didn't matter before HBD because the plugin list wasn't affected by content settings until HBD. This patch fixes it by passing url::Origin throughout the Plugins code rather than GURL for the page origin. BUG=649223 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/f2a1e9f94f9ac74896d5fe4c0e691befdfa40bc2 Cr-Commit-Position: refs/heads/master@{#423598}

Patch Set 1 #

Patch Set 2 : still work to do #

Patch Set 3 : Done, though it's insane #

Total comments: 1

Patch Set 4 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into 293-hbd-implement-blan… #

Patch Set 5 : fix #

Patch Set 6 : fix one last test #

Total comments: 3

Patch Set 7 : fix formatting #

Total comments: 12

Patch Set 8 : rename some params #

Patch Set 9 : update param names #

Patch Set 10 : revert a few accidental find and replaces #

Total comments: 8

Patch Set 11 : Address raymes' comments #

Patch Set 12 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into 293-hbd-implement-blan… #

Total comments: 10

Patch Set 13 : merge #

Patch Set 14 : address comments #

Patch Set 15 : merge again #

Patch Set 16 : fix typo #

Patch Set 17 : fix non-mechanical merge issues #

Patch Set 18 : fix dat merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -198 lines) Patch
M chrome/browser/download/download_target_determiner.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/download/download_target_determiner_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 chunks +59 lines, -52 lines 0 comments Download
M chrome/browser/plugins/flash_download_interception.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/plugins/flash_download_interception_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/plugins/flash_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +17 lines, -20 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +18 lines, -17 lines 0 comments Download
M chrome/browser/plugins/plugin_utils.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +26 lines, -14 lines 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/drag_util.mm View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 2 chunks +3 lines, -2 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 +2 lines, -1 line 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 +1 line, -2 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -8 lines 0 comments Download
M content/browser/frame_host/render_frame_message_filter.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -8 lines 0 comments Download
M content/browser/loader/mime_sniffing_resource_handler.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/loader/mime_sniffing_resource_handler_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/plugin_service_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -7 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/plugin_service.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M content/public/browser/plugin_service_filter.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -5 lines 0 comments Download
M content/shell/browser/shell_plugin_service_filter.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_plugin_service_filter.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/test/fake_plugin_service.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M content/test/fake_plugin_service.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 75 (52 generated)
tommycli
raymes: PTAL plugins stuff jochen: PTAL chrome/ and content/ nasko: PTAL messages changes Thanks! https://codereview.chromium.org/2378573005/diff/40001/chrome/renderer/chrome_content_renderer_client.cc ...
4 years, 2 months ago (2016-09-30 00:42:37 UTC) #20
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc File chrome/browser/plugins/plugin_utils.cc (right): https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc#newcode42 chrome/browser/plugins/plugin_utils.cc:42: !policy_url.SchemeIsHTTPOrHTTPS() && !policy_url.SchemeIsFile()) { aren't file urls unique as ...
4 years, 2 months ago (2016-09-30 10:50:35 UTC) #23
tommycli
https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc File chrome/browser/plugins/plugin_utils.cc (right): https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc#newcode42 chrome/browser/plugins/plugin_utils.cc:42: !policy_url.SchemeIsHTTPOrHTTPS() && !policy_url.SchemeIsFile()) { On 2016/09/30 10:50:34, jochen (slow) ...
4 years, 2 months ago (2016-09-30 17:44:43 UTC) #24
tommycli
https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc File chrome/browser/plugins/plugin_utils.cc (right): https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc#newcode42 chrome/browser/plugins/plugin_utils.cc:42: !policy_url.SchemeIsHTTPOrHTTPS() && !policy_url.SchemeIsFile()) { On 2016/09/30 17:44:43, tommycli wrote: ...
4 years, 2 months ago (2016-09-30 17:46:21 UTC) #25
jochen (gone - plz use gerrit)
On 2016/09/30 at 17:46:21, tommycli wrote: > https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc > File chrome/browser/plugins/plugin_utils.cc (right): > > https://codereview.chromium.org/2378573005/diff/120001/chrome/browser/plugins/plugin_utils.cc#newcode42 ...
4 years, 2 months ago (2016-09-30 17:57:16 UTC) #26
tommycli
On 2016/09/30 17:57:16, jochen (slow) wrote: > On 2016/09/30 at 17:46:21, tommycli wrote: > > ...
4 years, 2 months ago (2016-09-30 18:04:42 UTC) #27
nasko
Please ensure that URL is no longer present in the parameter/variable names when they are ...
4 years, 2 months ago (2016-09-30 20:38:49 UTC) #28
tommycli
nasko: Thanks! I changed everything to main_frame_origin. https://codereview.chromium.org/2378573005/diff/140001/chrome/browser/plugins/flash_download_interception.cc File chrome/browser/plugins/flash_download_interception.cc (right): https://codereview.chromium.org/2378573005/diff/140001/chrome/browser/plugins/flash_download_interception.cc#newcode68 chrome/browser/plugins/flash_download_interception.cc:68: host_content_settings_map, url::Origin(source_url), ...
4 years, 2 months ago (2016-09-30 21:20:42 UTC) #31
raymes
Thanks Tommy! > Fixes FILE plugin loads. Can you explain what exactly wasn't working properly? ...
4 years, 2 months ago (2016-10-02 05:12:56 UTC) #34
raymes
https://codereview.chromium.org/2378573005/diff/200001/chrome/browser/plugins/plugin_utils.cc File chrome/browser/plugins/plugin_utils.cc (right): https://codereview.chromium.org/2378573005/diff/200001/chrome/browser/plugins/plugin_utils.cc#newcode40 chrome/browser/plugins/plugin_utils.cc:40: // top level origin is any scheme other HTTP, ...
4 years, 2 months ago (2016-10-02 12:00:05 UTC) #35
tommycli
https://codereview.chromium.org/2378573005/diff/200001/chrome/browser/plugins/plugin_utils.cc File chrome/browser/plugins/plugin_utils.cc (right): https://codereview.chromium.org/2378573005/diff/200001/chrome/browser/plugins/plugin_utils.cc#newcode40 chrome/browser/plugins/plugin_utils.cc:40: // top level origin is any scheme other HTTP, ...
4 years, 2 months ago (2016-10-03 18:49:28 UTC) #38
tommycli
Previously FILE origins weren't being passed correctly in the GetPluginList path. This never bothered us ...
4 years, 2 months ago (2016-10-03 18:51:27 UTC) #39
tommycli
On 2016/10/03 18:51:27, tommycli wrote: > Previously FILE origins weren't being passed correctly in the ...
4 years, 2 months ago (2016-10-04 19:27:34 UTC) #44
raymes
chrome/browser/plugins/plugin_utils.cc lgtm
4 years, 2 months ago (2016-10-05 03:16:27 UTC) #45
tommycli
nasko: PTAL jochen: PTAL thanks!
4 years, 2 months ago (2016-10-05 16:16:34 UTC) #46
nasko
LGTM with a few nits. https://codereview.chromium.org/2378573005/diff/240001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2378573005/diff/240001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode227 chrome/browser/plugins/chrome_plugin_service_filter.cc:227: settings_map, GURL(main_frame_origin.Serialize())) < main_frame_origin.GetURL() ...
4 years, 2 months ago (2016-10-05 21:14:31 UTC) #47
tommycli
nasko: thanks! jochen: PTAL, thanks https://codereview.chromium.org/2378573005/diff/240001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2378573005/diff/240001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode227 chrome/browser/plugins/chrome_plugin_service_filter.cc:227: settings_map, GURL(main_frame_origin.Serialize())) < On ...
4 years, 2 months ago (2016-10-05 21:41:23 UTC) #49
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-06 12:17:09 UTC) #63
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/2378573005/340001
4 years, 2 months ago (2016-10-06 16:02:36 UTC) #66
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/275408)
4 years, 2 months ago (2016-10-06 16:07:25 UTC) #68
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/2378573005/360001
4 years, 2 months ago (2016-10-06 17:36:26 UTC) #71
commit-bot: I haz the power
Committed patchset #18 (id:360001)
4 years, 2 months ago (2016-10-06 18:34:57 UTC) #73
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 18:37:28 UTC) #75
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/f2a1e9f94f9ac74896d5fe4c0e691befdfa40bc2
Cr-Commit-Position: refs/heads/master@{#423598}

Powered by Google App Engine
This is Rietveld 408576698