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

Issue 2100753003: Enable PDF accessibility when RenderFrame's accessibility mode changes. (Closed)

Created:
4 years, 5 months ago by dmazzoni
Modified:
4 years, 5 months ago
Reviewers:
Lei Zhang, raymes, nasko
CC:
aboxhall+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable PDF accessibility when RenderFrame's accessibility mode changes. This does two things: (1) enables accessibility for a PDF plug-in when the accessibility mode changes for a RenderFrame (previously we only checked the mode once on creation), and (2) fixes a potential UAF in PdfAccessibilityTree if the RenderFrame deletes the RenderAccessibilityImpl, in particular during loading. BUG=54724 Committed: https://crrev.com/5a0018c9adcdc04c636d382f06e34bd6569ac791 Cr-Commit-Position: refs/heads/master@{#406108}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address feedback #

Total comments: 3

Patch Set 3 : Fixes iframes, print preview and adds tests #

Patch Set 4 : Fix compile #

Patch Set 5 : Add missing test file #

Patch Set 6 : Debug win assert failure #

Patch Set 7 : Fix win assertion #

Total comments: 16

Patch Set 8 : Rebase #

Patch Set 9 : Address feedback from raymes #

Total comments: 10

Patch Set 10 : Address feedback from thestig #

Patch Set 11 : Ready for commit #

Patch Set 12 : Work around cross-platform whitespace difference in print preview test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -87 lines) Patch
M chrome/browser/pdf/pdf_extension_test.cc View 1 2 3 4 5 6 7 8 9 5 chunks +128 lines, -46 lines 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -0 lines 0 comments Download
A chrome/test/data/pdf/test-cross-site-iframe.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/pdf/test-iframe.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/pdf/renderer/pdf_accessibility_tree.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -4 lines 0 comments Download
M components/pdf/renderer/pdf_accessibility_tree.cc View 1 2 3 4 5 6 7 8 9 7 chunks +27 lines, -8 lines 0 comments Download
M components/pdf/renderer/pepper_pdf_host.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M components/pdf/renderer/pepper_pdf_host.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -16 lines 0 comments Download
M content/public/renderer/pepper_plugin_instance.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/renderer/render_frame_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 3 chunks +21 lines, -2 lines 0 comments Download
M content/renderer/pepper/fake_pepper_plugin_instance.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/fake_pepper_plugin_instance.cc View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (18 generated)
dmazzoni
4 years, 5 months ago (2016-06-27 17:04:52 UTC) #3
raymes
Is it possible to add a test that exercises either of those cases? https://codereview.chromium.org/2100753003/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc File ...
4 years, 5 months ago (2016-06-28 00:02:13 UTC) #4
dmazzoni
> Is it possible to add a test that exercises either of those cases? Yes, ...
4 years, 5 months ago (2016-06-28 17:14:06 UTC) #5
nasko
https://codereview.chromium.org/2100753003/diff/20001/components/pdf/renderer/pdf_accessibility_tree.cc File components/pdf/renderer/pdf_accessibility_tree.cc (right): https://codereview.chromium.org/2100753003/diff/20001/components/pdf/renderer/pdf_accessibility_tree.cc#newcode73 components/pdf/renderer/pdf_accessibility_tree.cc:73: content::RenderFrame* render_frame = render_view_->GetMainRenderFrame(); Are we guaranteed to have ...
4 years, 5 months ago (2016-06-28 21:59:51 UTC) #6
raymes
https://codereview.chromium.org/2100753003/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2100753003/diff/1/content/renderer/render_frame_impl.cc#newcode2119 content/renderer/render_frame_impl.cc:2119: AccessibilityModeChanged()); Ahh ok - so that will only be ...
4 years, 5 months ago (2016-06-29 00:31:36 UTC) #7
dmazzoni
https://codereview.chromium.org/2100753003/diff/20001/components/pdf/renderer/pdf_accessibility_tree.cc File components/pdf/renderer/pdf_accessibility_tree.cc (right): https://codereview.chromium.org/2100753003/diff/20001/components/pdf/renderer/pdf_accessibility_tree.cc#newcode73 components/pdf/renderer/pdf_accessibility_tree.cc:73: content::RenderFrame* render_frame = render_view_->GetMainRenderFrame(); On 2016/06/29 00:31:36, raymes wrote: ...
4 years, 5 months ago (2016-06-30 22:35:14 UTC) #8
raymes
Thanks! A few more thoughts but otherwise looks good https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc#newcode84 chrome/browser/pdf/pdf_extension_test.cc:84: ...
4 years, 5 months ago (2016-07-12 01:36:24 UTC) #9
nasko
This version looks fine to me. Waiting for raymes@ to be happy before stamping it.
4 years, 5 months ago (2016-07-12 18:49:07 UTC) #10
dmazzoni
https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc#newcode84 chrome/browser/pdf/pdf_extension_test.cc:84: content::IsolateAllSitesForTesting(command_line); On 2016/07/12 at 01:36:23, raymes wrote: > Don't ...
4 years, 5 months ago (2016-07-13 23:17:53 UTC) #12
raymes
lgtm with a few questions https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc#newcode84 chrome/browser/pdf/pdf_extension_test.cc:84: content::IsolateAllSitesForTesting(command_line); On 2016/07/13 23:17:53, ...
4 years, 5 months ago (2016-07-14 03:15:55 UTC) #16
nasko
LGTM https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc#newcode84 chrome/browser/pdf/pdf_extension_test.cc:84: content::IsolateAllSitesForTesting(command_line); On 2016/07/14 03:15:54, raymes wrote: > On ...
4 years, 5 months ago (2016-07-14 18:21:44 UTC) #17
dmazzoni
https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2100753003/diff/120001/chrome/browser/pdf/pdf_extension_test.cc#newcode643 chrome/browser/pdf/pdf_extension_test.cc:643: ui::AXTreeUpdate ax_tree = GetAccessibilityTreeSnapshot(guest_contents); On 2016/07/14 at 03:15:54, raymes ...
4 years, 5 months ago (2016-07-14 21:04:41 UTC) #18
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/2100753003/160001
4 years, 5 months ago (2016-07-14 21:05:24 UTC) #20
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/218395)
4 years, 5 months ago (2016-07-14 21:15:37 UTC) #22
dmazzoni
+thestig for chrome/browser/printing/print_preview_dialog_controller_browsertest.cc
4 years, 5 months ago (2016-07-15 18:18:52 UTC) #24
Lei Zhang
lgtm https://codereview.chromium.org/2100753003/diff/160001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2100753003/diff/160001/chrome/browser/pdf/pdf_extension_test.cc#newcode559 chrome/browser/pdf/pdf_extension_test.cc:559: static const char* kExpectedPDFAXTree = const char kFoo[], ...
4 years, 5 months ago (2016-07-15 19:26:21 UTC) #25
dmazzoni
https://codereview.chromium.org/2100753003/diff/160001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2100753003/diff/160001/chrome/browser/pdf/pdf_extension_test.cc#newcode559 chrome/browser/pdf/pdf_extension_test.cc:559: static const char* kExpectedPDFAXTree = On 2016/07/15 at 19:26:21, ...
4 years, 5 months ago (2016-07-18 04:28:33 UTC) #27
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/2100753003/200001
4 years, 5 months ago (2016-07-18 05:14:30 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/257180)
4 years, 5 months ago (2016-07-18 06:15:06 UTC) #33
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/2100753003/220001
4 years, 5 months ago (2016-07-18 20:32:46 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 5 months ago (2016-07-18 21:45:51 UTC) #38
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 21:46:18 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 21:48:35 UTC) #41
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/5a0018c9adcdc04c636d382f06e34bd6569ac791
Cr-Commit-Position: refs/heads/master@{#406108}

Powered by Google App Engine
This is Rietveld 408576698