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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 1719473002: Fix broken parent->child link in automation webView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/automation_custom_bindings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/automation/automation_node.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
index b13569d4c14f18d4bd72c25ffad1ed7b7207de44..728dc28255f3ca7d09ff284c3dbbf5d1cf3dad11 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -241,10 +241,12 @@ AutomationNodeImpl.prototype = {
return GetIndexInParent(this.treeID, this.id);
},
+ set childTree(node) {
+ this.childTree_ = node;
+ },
+
get childTree() {
- var childTreeID = GetIntAttribute(this.treeID, this.id, 'childTreeId');
- if (childTreeID)
- return AutomationRootNodeImpl.get(childTreeID);
+ return this.childTree_;
},
get firstChild() {
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/automation_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698