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

Issue 2284053002: Register a fake Flash with chrome://plugins during browser start-up. (Closed)

Created:
4 years, 3 months ago by waffles
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang, sky, Will Harris
CC:
chromium-reviews, jam, Nico, sky, tommycli
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Register a fake Flash with chrome://plugins during browser start-up. This enables websites to query for the presence of Flash using navigator.plugins and navigator.mimeTypes even when we don't actually have it. TEST=https://docs.google.com/a/google.com/document/d/1P0WslUXMUO9azLmWZ0AtQ-sGExWbHttr_2gQWDXf3MY/pub BUG=641448, 641884, 641657 Committed: https://crrev.com/cd59e9b913623e8fec8bbc9d5517610bc1bfc9a7 Cr-Commit-Position: refs/heads/master@{#415100}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Through #5 + git pull && gclient sync #

Total comments: 2

Patch Set 3 : Through #18 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 chunks +11 lines, -0 lines 1 comment Download
M chrome/common/chrome_content_client.h View 2 chunks +4 lines, -0 lines 1 comment Download
M chrome/common/chrome_content_client.cc View 2 chunks +14 lines, -1 line 0 comments Download
M chrome/common/chrome_content_client_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (17 generated)
waffles
PTAL. Let me know if you think a better approach is called for; this seemed ...
4 years, 3 months ago (2016-08-26 22:36:48 UTC) #2
waffles
(Ah, I just realized Tommy is a only per-filed for plugin_power_saver. Sorry for the noise.)
4 years, 3 months ago (2016-08-26 22:39:50 UTC) #4
Will Harris
I'm not sure this will compile on a non-chrome build... https://codereview.chromium.org/2284053002/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2284053002/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc#newcode10 ...
4 years, 3 months ago (2016-08-26 22:52:35 UTC) #5
waffles
(currently compiling non-Google-build... so slow) https://codereview.chromium.org/2284053002/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2284053002/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc#newcode10 chrome/browser/plugins/plugin_info_message_filter.cc:10: #include <utility> On 2016/08/26 ...
4 years, 3 months ago (2016-08-26 23:10:04 UTC) #6
Will Harris
I wonder if this breaks sites that detect if Flash is enabled and behave differently... ...
4 years, 3 months ago (2016-08-29 19:55:02 UTC) #12
waffles
On 2016/08/29 19:55:02, Will Harris wrote: > I wonder if this breaks sites that detect ...
4 years, 3 months ago (2016-08-29 20:16:37 UTC) #13
Will Harris
lgtm
4 years, 3 months ago (2016-08-29 20:32:53 UTC) #14
waffles
+thakis, sky as alternate chrome/ OWNERS. (Would be good to land this soon, as it ...
4 years, 3 months ago (2016-08-30 00:08:08 UTC) #16
Lei Zhang
lgtm Erm, you could have just pinged me. https://codereview.chromium.org/2284053002/diff/20001/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2284053002/diff/20001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode410 chrome/browser/plugins/plugin_info_message_filter.cc:410: base::FilePath ...
4 years, 3 months ago (2016-08-30 00:17:57 UTC) #17
waffles
On 2016/08/30 00:17:57, Lei Zhang wrote: > lgtm > > Erm, you could have just ...
4 years, 3 months ago (2016-08-30 00:18:52 UTC) #18
waffles
https://codereview.chromium.org/2284053002/diff/20001/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2284053002/diff/20001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode410 chrome/browser/plugins/plugin_info_message_filter.cc:410: base::FilePath notPresent = On 2016/08/30 00:17:57, Lei Zhang wrote: ...
4 years, 3 months ago (2016-08-30 00:21:16 UTC) #21
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/2284053002/40001
4 years, 3 months ago (2016-08-30 00:59:08 UTC) #25
sky
I'm not familiar with this code (and it looks like a hack). Is there another ...
4 years, 3 months ago (2016-08-30 03:25:23 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-30 04:35:07 UTC) #29
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/cd59e9b913623e8fec8bbc9d5517610bc1bfc9a7 Cr-Commit-Position: refs/heads/master@{#415100}
4 years, 3 months ago (2016-08-30 04:37:13 UTC) #31
waffles
On 2016/08/30 03:25:23, sky wrote: > I'm not familiar with this code (and it looks ...
4 years, 3 months ago (2016-08-31 19:25:53 UTC) #32
sky
Isn't there someone else that is an owner of this code that is around? On ...
4 years, 3 months ago (2016-08-31 20:41:13 UTC) #33
Will Harris
FWIW bauerb would be the person I would suggest too.
4 years, 3 months ago (2016-08-31 20:43:51 UTC) #34
waffles
4 years, 3 months ago (2016-08-31 20:49:21 UTC) #36
Message was sent while issue was closed.
On 2016/08/31 20:41:13, sky wrote:
> Isn't there someone else that is an owner of this code that is around?

+tommycli@ is not technically an OWNER but could provide a second opinion.

Powered by Google App Engine
This is Rietveld 408576698