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

Issue 890013006: Reland #2: Ensure WebView notifies desktop automation on creation, destruction, and change Original (Closed)

Created:
5 years, 10 months ago by David Tseng
Modified:
5 years, 10 months ago
Reviewers:
tfarina, dmazzoni
CC:
chromium-reviews, extensions-reviews_chromium.org, oshima+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, nkostylev+watch_chromium.org, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland #2: Ensure WebView notifies desktop automation on creation, destruction, and change Original issue: https://codereview.chromium.org/880063002 Previous reland attempt: https://codereview.chromium.org/895623003/ This cl changes the way in which ChromeVox initially verbalizes a page which led to flakeyness in chromevox_tests --gtest_filter=BackgroundTest.* To attempt and address the flakeyness, - chromevox_e2e_test_base.js and chromevox_next_e2e_test_base.js now explicitly separates listening to page load events from the chrome.automation tree and the chrome.tabs APIs. They are named: runWithLoadedTree, runWithLoadedTab, and runWithTab. The last method allows a caller to create a tab, but not wait for it to load (based on the tab status being 'complete'). - each test in background_test now no longer waits for ChromeVox to speak 'start' (which formerly could have been triggered by a loadComplete automation event). - tab creation is still done via the tabs API, but listening for load is done via chrome.automation. (i.e. add a listener for an automation tree to load completely, then create a tab). It is not known at this time if this cl will continue to cause flakes in the above tests. Try bots and local runs yielded no flakeyness. The next step may be to introduce logging to identify the source of the flakeyness. TBR=tfarina Committed: https://crrev.com/9b006b56ca402da3774708f08e062c89018d57a6 Cr-Commit-Position: refs/heads/master@{#315362}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Removes wait on 'start'. #

Patch Set 4 : Better naming. #

Patch Set 5 : Small change to further combat flakeyness. #

Patch Set 6 : One must bind(this) functions when using this... #

Patch Set 7 : One more potential case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -122 lines) Patch
M chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/common/editable_text_base.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js View 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_test.extjs View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js View 5 chunks +32 lines, -51 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs View 1 2 3 4 chunks +7 lines, -14 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs View 1 2 3 2 chunks +17 lines, -18 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js View 1 2 3 2 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js View 1 2 3 4 5 6 1 chunk +14 lines, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/mock_tts.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/extension_js_browser_test.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/extension_load_waiter_one_shot.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/views/accessibility/ax_aura_obj_cache.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/accessibility/ax_aura_obj_cache.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/accessibility/ax_widget_obj_wrapper.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M ui/views/controls/webview/webview.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/webview/webview.cc View 7 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
David Tseng
Ok; I cleaned up the test code in this cl a little. Mostly, I removed ...
5 years, 10 months ago (2015-02-05 03:20:54 UTC) #3
dmazzoni
lgtm
5 years, 10 months ago (2015-02-05 16:36:16 UTC) #4
tfarina
Could you state in the CL description why it was reverted last time (and perhaps ...
5 years, 10 months ago (2015-02-05 16:41:28 UTC) #5
David Tseng
On 2015/02/05 16:41:28, tfarina wrote: > Could you state in the CL description why it ...
5 years, 10 months ago (2015-02-05 18:59:41 UTC) #7
David Tseng
tfarina, just wanted to ensure you're ok with this change now. Would like to land ...
5 years, 10 months ago (2015-02-06 18:48:06 UTC) #8
tfarina
I haven't reviewed it. I trust Dominic's review. If he is fine then go ahead.
5 years, 10 months ago (2015-02-07 00:39:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/890013006/120001
5 years, 10 months ago (2015-02-09 19:05:17 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/41459)
5 years, 10 months ago (2015-02-09 19:11:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/890013006/120001
5 years, 10 months ago (2015-02-09 19:20:35 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-09 19:24:37 UTC) #16
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/9b006b56ca402da3774708f08e062c89018d57a6 Cr-Commit-Position: refs/heads/master@{#315362}
5 years, 10 months ago (2015-02-09 19:25:21 UTC) #17
jiayl
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/910013002/ by jiayl@chromium.org. ...
5 years, 10 months ago (2015-02-09 20:16:54 UTC) #18
David Tseng
5 years, 10 months ago (2015-02-09 21:22:14 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/908853004/ by dtseng@chromium.org.

The reason for reverting is: Cause of flakes in chromevox_tests
BackgroundTest.*.

Powered by Google App Engine
This is Rietveld 408576698