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

Issue 1259703002: Re-land (2): Reimplement automation API on top of C++-backed AXTree. (Closed)

Created:
5 years, 5 months ago by dmazzoni
Modified:
5 years, 4 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, dtseng+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, jam, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, kalyank, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, dmazzoni+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-land (2): Reimplement automation API on top of C++-backed AXTree. Original review: https://codereview.chromium.org/1155183006 Landed: r335183 Reverted: r335343 (bug 502311) Landed again: r339929 Reverted again: r340091 (bug 502311 again) One fix to ax_tree.cc - bug 502311 was triggered from two different code paths, now both have tests. Also adds tiny fixes to automation_event_router.cc and automation_internal_custom_bindings.cc to prevent crashes when toggling ChromeVox off and on. TBRing dcheng, kalman since none of those files have changed since the original review. BUG=495323, 502311 TBR=dcheng,kalman Committed: https://crrev.com/d6848287cfe79ff1ed18dbae20f6be231b9276b8 Cr-Commit-Position: refs/heads/master@{#340602}

Patch Set 1 #

Patch Set 2 : Rebase again #

Patch Set 3 : Another fix and test #

Patch Set 4 : Fix crash when toggling ChromeVox off and on #

Total comments: 4

Patch Set 5 : Add missing null check caught by asan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1630 lines, -2485 lines) Patch
M chrome/browser/extensions/api/automation/automation_apitest.cc View 4 chunks +5 lines, -333 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_event_router.cc View 1 2 3 3 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 7 chunks +58 lines, -9 lines 0 comments Download
D chrome/browser/extensions/api/automation_internal/automation_util.h View 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/extensions/api/automation_internal/automation_util.cc View 1 chunk +0 lines, -215 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/aura/accessibility/automation_manager_aura.cc View 4 chunks +25 lines, -29 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 6 chunks +94 lines, -102 lines 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 3 chunks +3 lines, -41 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.h View 3 chunks +125 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.cc View 1 2 3 4 9 chunks +493 lines, -26 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 12 chunks +450 lines, -640 lines 0 comments Download
M chrome/renderer/resources/extensions/automation_custom_bindings.js View 10 chunks +71 lines, -19 lines 0 comments Download
A + chrome/test/data/extensions/api_test/automation/sites/attributes.html View 3 chunks +15 lines, -14 lines 0 comments Download
D chrome/test/data/extensions/api_test/automation/sites/mixins.html View 1 chunk +0 lines, -72 lines 0 comments Download
A + chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.html View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js View 6 chunks +76 lines, -81 lines 0 comments Download
D chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.html View 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js View 1 chunk +0 lines, -246 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js View 1 chunk +18 lines, -19 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/tabs/tree_change.js View 1 chunk +1 line, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/automation/tests/unit/manifest.json View 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/test/data/extensions/api_test/automation/tests/unit/test.js View 1 chunk +0 lines, -508 lines 0 comments Download
D chrome/test/data/extensions/api_test/automation/tests/unit/unit.html View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 2 12 chunks +132 lines, -16 lines 0 comments Download
M extensions/renderer/logging_native_handler.h View 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/renderer/logging_native_handler.cc View 2 chunks +3 lines, -27 lines 0 comments Download
M extensions/renderer/script_context.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/script_context.cc View 2 chunks +30 lines, -0 lines 0 comments Download
M ui/accessibility/ax_tree.cc View 1 2 3 4 3 chunks +12 lines, -6 lines 0 comments Download
M ui/accessibility/ax_tree_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 13 (3 generated)
dmazzoni
David, ready for a look - see change description for the four files that changed ...
5 years, 4 months ago (2015-07-27 18:14:22 UTC) #2
not at google - send to devlin
Without reading through this - I've been adding metrics for extension events, which is something ...
5 years, 4 months ago (2015-07-27 18:34:20 UTC) #3
David Tseng
lgtm https://codereview.chromium.org/1259703002/diff/60001/ui/accessibility/ax_tree.cc File ui/accessibility/ax_tree.cc (right): https://codereview.chromium.org/1259703002/diff/60001/ui/accessibility/ax_tree.cc#newcode92 ui/accessibility/ax_tree.cc:92: // Make sure root_ always points to something ...
5 years, 4 months ago (2015-07-27 18:46:38 UTC) #4
dmazzoni
On 2015/07/27 18:34:20, kalman wrote: > Without reading through this - I've been adding metrics ...
5 years, 4 months ago (2015-07-27 18:52:16 UTC) #5
dmazzoni
On 2015/07/27 18:34:20, kalman wrote: > Without reading through this - I've been adding metrics ...
5 years, 4 months ago (2015-07-27 18:52:18 UTC) #6
dmazzoni
https://codereview.chromium.org/1259703002/diff/60001/ui/accessibility/ax_tree.cc File ui/accessibility/ax_tree.cc (right): https://codereview.chromium.org/1259703002/diff/60001/ui/accessibility/ax_tree.cc#newcode92 ui/accessibility/ax_tree.cc:92: // Make sure root_ always points to something valid ...
5 years, 4 months ago (2015-07-27 21:40:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259703002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259703002/80001
5 years, 4 months ago (2015-07-27 21:56:47 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-07-27 23:41:40 UTC) #11
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/d6848287cfe79ff1ed18dbae20f6be231b9276b8 Cr-Commit-Position: refs/heads/master@{#340602}
5 years, 4 months ago (2015-07-27 23:42:54 UTC) #12
David Tseng
5 years, 4 months ago (2015-07-29 16:14:41 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1259703002/diff/60001/chrome/renderer/resourc...
File chrome/renderer/resources/extensions/automation/automation_node.js (right):

https://codereview.chromium.org/1259703002/diff/60001/chrome/renderer/resourc...
chrome/renderer/resources/extensions/automation/automation_node.js:156: get
parent() {
rootWebArea are no longer hooked up properly across navigations.
chrome.automation.getDesktop(function(d){window.d=d})
undefined
JS> w=d.findAll({role:'rootWebArea'})
[AutomationRootNode]
JS> w=w[0]
JS> w.docUrl
"http://www.latimes.com/"
JS> w.parent
undefined

https://codereview.chromium.org/1259703002/diff/60001/chrome/renderer/resourc...
File chrome/renderer/resources/extensions/automation_custom_bindings.js (right):

https://codereview.chromium.org/1259703002/diff/60001/chrome/renderer/resourc...
chrome/renderer/resources/extensions/automation_custom_bindings.js:160:
automationInternal.enableFrame(childTreeID);
childTreeID can be null here.

Powered by Google App Engine
This is Rietveld 408576698