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

Issue 1719473002: Fix broken parent->child link in automation webView. (Closed)

Created:
4 years, 10 months ago by David Tseng
Modified:
4 years, 10 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix broken parent->child link in automation webView. The core of the issue is that the childTreeId seems to be used as a node id. Whenever we perform the lookup, we are using the wrong id. This id gets passed to both enableFrame and AutomationRootNodeImpl.get. This manifests itself in flakey ChromeVox Panel (sometimes it populates the subtree, sometimes it doesn't). This is probably due to the dependence on a load complete or focus event to get us to a particular node inside the floating subtree. We can get back to the host but can't dive back in. TEST=repeatedly open ChromeVox Panel from a new session of ChromeVox. Note that there appear to be other issues with the Panel (esc doesn't close it or restore focus).

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/automation_custom_bindings.js View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
David Tseng
4 years, 10 months ago (2016-02-19 20:26:19 UTC) #3
dmazzoni
I think this assumes that childTreeIds are only populated by calls to enableFrame, but in ...
4 years, 10 months ago (2016-02-19 21:22:59 UTC) #4
David Tseng
On Fri, Feb 19, 2016 at 1:22 PM, <dmazzoni@chromium.org> wrote: I think this assumes that ...
4 years, 10 months ago (2016-02-19 21:32:43 UTC) #5
dmazzoni
On Fri, Feb 19, 2016 at 1:32 PM David Tseng <dtseng@chromium.org> wrote: > Is this ...
4 years, 10 months ago (2016-02-19 23:14:15 UTC) #6
dmazzoni
Instead of this fix, what if we check if the views::WebView might need to update ...
4 years, 10 months ago (2016-02-19 23:15:53 UTC) #7
David Tseng
On Fri, Feb 19, 2016 at 3:15 PM, <dmazzoni@chromium.org> wrote: > Instead of this fix, ...
4 years, 10 months ago (2016-02-19 23:40:55 UTC) #8
dmazzoni
4 years, 10 months ago (2016-02-19 23:59:32 UTC) #9
I don't see the use of a child tree id as a node id, where is that?

AutomationRootNodeImpl.get() takes a tree id, and returns an AutomationRootNode
- which is also an AutomationNode, so it should work.

Powered by Google App Engine
This is Rietveld 408576698