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

Issue 1552683002: Enable DumpAccessibilityTree tests to use cross-process iframes. (Closed)

Created:
4 years, 11 months ago by dmazzoni
Modified:
4 years, 11 months ago
Reviewers:
David Tseng, dcheng, nasko, sky
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, chromium-reviews, darin-cc_chromium.org, dmazzoni, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, nektar+watch_chromium.org, nektarios, plundblad+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 DumpAccessibilityTree tests to use cross-process iframes. Makes it possible for a DumpAccessibilityTree test to load an iframe in a separate process simply by adding the text @CROSS-SITE: to the url, for example: <iframe src="@CROSS-SITE:iframe.html"></iframe> The test framework handles the details automatically including blocking until the accessibility tree for the child frame finishes loading. This significantly reduces the difficulty and complexity of adding new tests for accessibility of out-of-process iframes. This change also tries to improve the robustness of existing iframe accessibility tests and re-enables a previously flaky test. BUG=368298, 224659, 551601 Committed: https://crrev.com/ff8a7383fdcfa996b2c673fdaafbab2eedd05d8c Cr-Commit-Position: refs/heads/master@{#370192}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix merge error #

Patch Set 4 : Rebase #

Patch Set 5 : Fix Mac tests #

Patch Set 6 : Fix Mac failures #

Patch Set 7 : Fix win tests #

Patch Set 8 : Fix win coordinates #

Patch Set 9 : Rebaseline last win tests #

Total comments: 25

Patch Set 10 : Address feedback, switch to /cross-site/ syntax #

Patch Set 11 : try to fix win compile #

Patch Set 12 : Get rid of lambdas due to MSVC bug #

Total comments: 4

Patch Set 13 : http -> https, revert whitespace changes #

Patch Set 14 : Fix Win tests by adding back about:blank special case #

Patch Set 15 : Don't assume browser accessibility manager exists initially due to Android initialization path #

Patch Set 16 : Rebase #

Patch Set 17 : Rebase #

Patch Set 18 : Fix Android tests #

Patch Set 19 : Go back to waiting for load complete AX event #

Patch Set 20 : Rebaseline last Android test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -115 lines) Patch
M content/browser/accessibility/accessibility_tree_formatter_blink.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M content/browser/accessibility/accessibility_tree_formatter_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/accessibility_tree_formatter_win.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +11 lines, -4 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_browsertest_base.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_browsertest_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +137 lines, -31 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 chunks +13 lines, -4 lines 0 comments Download
M content/test/accessibility_browser_test_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-progressbar.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-scrollbar.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-searchbox.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-slider.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-textbox.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A content/test/data/accessibility/html/frame/button.html View 1 chunk +10 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/frame/button_scrolled.html View 1 chunk +14 lines, -0 lines 0 comments Download
A + content/test/data/accessibility/html/frame/empty.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/test/data/accessibility/html/frame/static_text.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -3 lines 0 comments Download
M content/test/data/accessibility/html/iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/iframe-coordinates.html View 2 chunks +23 lines, -27 lines 0 comments Download
A content/test/data/accessibility/html/iframe-coordinates-cross-process.html View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/iframe-coordinates-cross-process-expected-blink.txt View 1 chunk +16 lines, -0 lines 0 comments Download
A + content/test/data/accessibility/html/iframe-coordinates-cross-process-expected-mac.txt View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A + content/test/data/accessibility/html/iframe-coordinates-cross-process-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/iframe-coordinates-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -2 lines 0 comments Download
A content/test/data/accessibility/html/iframe-coordinates-expected-blink.txt View 1 chunk +18 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/iframe-coordinates-expected-win.txt View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
A content/test/data/accessibility/html/iframe-cross-process.html View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/iframe-cross-process-expected-blink.txt View 1 chunk +14 lines, -0 lines 0 comments Download
A + content/test/data/accessibility/html/iframe-cross-process-expected-mac.txt View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A + content/test/data/accessibility/html/iframe-cross-process-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/iframe-expected-blink.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/iframe-presentational.html View 1 chunk +1 line, -1 line 0 comments Download
D content/test/data/accessibility/html/iframesrc.html View 1 chunk +0 lines, -5 lines 0 comments Download
M content/test/data/accessibility/html/input-color.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-email.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-tel.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-text.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/p-expected-blink.txt View 1 chunk +6 lines, -6 lines 0 comments Download
M content/test/data/accessibility/readme.txt View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXScrollView.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXScrollView.cpp View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 42 (19 generated)
dmazzoni
dtseng: primary reviewer sky: content/test nasko, dcheng: please review the changes to dump_accessibility_browsertest_base.cc that navigate ...
4 years, 11 months ago (2016-01-05 22:57:05 UTC) #2
sky
I did not look at content/test/data. OWNERS for that is '*', so one of your ...
4 years, 11 months ago (2016-01-05 23:23:49 UTC) #3
David Tseng
lgtm https://codereview.chromium.org/1552683002/diff/160001/content/browser/accessibility/browser_accessibility_manager.cc File content/browser/accessibility/browser_accessibility_manager.cc (right): https://codereview.chromium.org/1552683002/diff/160001/content/browser/accessibility/browser_accessibility_manager.cc#newcode619 content/browser/accessibility/browser_accessibility_manager.cc:619: if (!GetRoot()) When does this happen? https://codereview.chromium.org/1552683002/diff/160001/content/browser/accessibility/dump_accessibility_browsertest_base.cc File ...
4 years, 11 months ago (2016-01-07 00:02:29 UTC) #4
dcheng
Seems reasonable to me: I'll defer to nasko@ for approval. I just had a few ...
4 years, 11 months ago (2016-01-07 00:07:11 UTC) #5
nasko
https://codereview.chromium.org/1552683002/diff/160001/content/browser/accessibility/dump_accessibility_browsertest_base.cc File content/browser/accessibility/dump_accessibility_browsertest_base.cc (right): https://codereview.chromium.org/1552683002/diff/160001/content/browser/accessibility/dump_accessibility_browsertest_base.cc#newcode50 content/browser/accessibility/dump_accessibility_browsertest_base.cc:50: return true; nit: This is a small enough function ...
4 years, 11 months ago (2016-01-07 00:07:37 UTC) #6
dmazzoni
Thanks for the great feedback. The use of lambdas and /cross-site/ really improved this code. ...
4 years, 11 months ago (2016-01-07 19:19:08 UTC) #7
dmazzoni
Unfortunately I had to revert the use of lambdas due to a VC++ bug: http://stackoverflow.com/questions/26220448/operator-on-lambda ...
4 years, 11 months ago (2016-01-07 21:37:47 UTC) #8
nasko
LGTM with couple of nits. https://codereview.chromium.org/1552683002/diff/220001/content/browser/accessibility/dump_accessibility_browsertest_base.cc File content/browser/accessibility/dump_accessibility_browsertest_base.cc (right): https://codereview.chromium.org/1552683002/diff/220001/content/browser/accessibility/dump_accessibility_browsertest_base.cc#newcode73 content/browser/accessibility/dump_accessibility_browsertest_base.cc:73: // not possible with ...
4 years, 11 months ago (2016-01-08 22:57:45 UTC) #9
dmazzoni
https://codereview.chromium.org/1552683002/diff/220001/content/browser/accessibility/dump_accessibility_browsertest_base.cc File content/browser/accessibility/dump_accessibility_browsertest_base.cc (right): https://codereview.chromium.org/1552683002/diff/220001/content/browser/accessibility/dump_accessibility_browsertest_base.cc#newcode73 content/browser/accessibility/dump_accessibility_browsertest_base.cc:73: // not possible with same-process iframes until http://crbug.com/532249 On ...
4 years, 11 months ago (2016-01-11 19:04:41 UTC) #10
dmazzoni
https://codereview.chromium.org/1552683002/diff/160001/content/browser/accessibility/dump_accessibility_browsertest_base.cc File content/browser/accessibility/dump_accessibility_browsertest_base.cc (right): https://codereview.chromium.org/1552683002/diff/160001/content/browser/accessibility/dump_accessibility_browsertest_base.cc#newcode58 content/browser/accessibility/dump_accessibility_browsertest_base.cc:58: if (url != url::kAboutBlankURL) On 2016/01/07 19:19:08, dmazzoni wrote: ...
4 years, 11 months ago (2016-01-11 19:40:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552683002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552683002/260001
4 years, 11 months ago (2016-01-11 20:16:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/6725)
4 years, 11 months ago (2016-01-12 02:00:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552683002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552683002/260001
4 years, 11 months ago (2016-01-12 04:11:18 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/7101)
4 years, 11 months ago (2016-01-12 10:56:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552683002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552683002/280001
4 years, 11 months ago (2016-01-13 21:17:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552683002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552683002/300001
4 years, 11 months ago (2016-01-13 22:56:44 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_dbg on ...
4 years, 11 months ago (2016-01-14 01:10:00 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552683002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552683002/300001
4 years, 11 months ago (2016-01-14 19:49:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552683002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552683002/340001
4 years, 11 months ago (2016-01-16 00:38:22 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/155276)
4 years, 11 months ago (2016-01-16 01:22:12 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552683002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552683002/380001
4 years, 11 months ago (2016-01-19 21:29:12 UTC) #39
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years, 11 months ago (2016-01-19 21:36:29 UTC) #40
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 21:37:53 UTC) #42
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/ff8a7383fdcfa996b2c673fdaafbab2eedd05d8c
Cr-Commit-Position: refs/heads/master@{#370192}

Powered by Google App Engine
This is Rietveld 408576698