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

Issue 1857263004: Always trust internal PDF viewer. (Closed)

Created:
4 years, 8 months ago by Will Harris
Modified:
4 years, 6 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, arv+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always trust internal PDF viewer. Internal PDF viewer will always load if it is not disabled, even if plugins are set to CONTENT_SETTING_BLOCK in content settings. BUG=509251 TEST=Block all plugins in chrome://settings/content, go to Google Drive and try to print a sheet with embedded graph. It should show print preview successfully. TEST=Check chrome://plugins shows PDF viewer "always enabled" with tick box greyed out. TEST=Install Adobe Reader X. Check you can still disable internal PDF viewer and PDFs load in Reader X. Committed: https://crrev.com/e53608ba54b3aff711c1e1c68243417f99bcd340 Cr-Commit-Position: refs/heads/master@{#385615}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Patch Set 3 : rebase rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -25 lines) Patch
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/plugins/plugin_metadata.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_metadata.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/plugin_metadata/plugins_chromeos.json View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/plugin_metadata/plugins_linux.json View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/plugin_metadata/plugins_mac.json View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/resources/plugin_metadata/plugins_win.json View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/resources/plugins.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/plugins.js View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/plugins/plugins.mojom View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/plugins/plugins_handler.cc View 1 2 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
Will Harris
PTAL
4 years, 8 months ago (2016-04-05 18:07:11 UTC) #6
Peter Kasting
Thank you for this! This made PDFs annoying for power saver mode. (We used to ...
4 years, 8 months ago (2016-04-05 23:23:11 UTC) #7
Bernhard Bauer
lgtm https://codereview.chromium.org/1857263004/diff/1/chrome/browser/resources/plugin_metadata/plugins_mac.json File chrome/browser/resources/plugin_metadata/plugins_mac.json (right): https://codereview.chromium.org/1857263004/diff/1/chrome/browser/resources/plugin_metadata/plugins_mac.json#newcode281 chrome/browser/resources/plugin_metadata/plugins_mac.json:281: "comment": "Chrome PDF Viewer has no version information." ...
4 years, 8 months ago (2016-04-06 08:23:46 UTC) #8
Bernhard Bauer
Oh, also: How does Adobe Reader X work with post-NPAPI Chrome? I thought third-party plugins ...
4 years, 8 months ago (2016-04-06 08:24:37 UTC) #9
Will Harris
On 2016/04/06 08:24:37, Bernhard Bauer wrote: > Oh, also: How does Adobe Reader X work ...
4 years, 8 months ago (2016-04-06 17:43:25 UTC) #10
Will Harris
Thanks for quick review. I was expecting more comments :) I still need to do ...
4 years, 8 months ago (2016-04-06 17:49:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857263004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857263004/20001
4 years, 8 months ago (2016-04-06 21:47:29 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/15139) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-06 21:51:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857263004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857263004/40001
4 years, 8 months ago (2016-04-06 22:29:44 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/192545)
4 years, 8 months ago (2016-04-06 23:39:09 UTC) #21
Will Harris
On 2016/04/06 23:39:09, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 8 months ago (2016-04-06 23:41:10 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857263004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857263004/40001
4 years, 8 months ago (2016-04-06 23:42:16 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 02:19:11 UTC) #26
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e53608ba54b3aff711c1e1c68243417f99bcd340 Cr-Commit-Position: refs/heads/master@{#385615}
4 years, 8 months ago (2016-04-07 02:20:49 UTC) #28
tim5
4 years, 6 months ago (2016-06-22 18:40:31 UTC) #29
Message was sent while issue was closed.
On 2016/04/05 23:23:11, Peter Kasting wrote:
> Thank you for this!  This made PDFs annoying for power saver mode.  (We used
to
> have an exception for full-page plugins for click-to-play, which handled most
> PDF cases, but it got removed.)

Can someone explain why this was done? I am not allowed to view the original
bug. I don't have permission. 

Please see the post here for why some of us think this change was a very bad
move: 
https://productforums.google.com/forum/#!topic/chrome/rE-nZIfmDrU;context-pla...

Mainly, Chromium and Chrome already had a major vulnerability in the PDF viewer.
So now you have made it so that we have no choice but to either not use the
viewer or ALWAYS allow it? You open us up to attackers using potential future
vulnerabilities. Why?

Powered by Google App Engine
This is Rietveld 408576698