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

Unified Diff: chrome/renderer/resources/extensions/automation_custom_bindings.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 | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/automation_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/automation_custom_bindings.js b/chrome/renderer/resources/extensions/automation_custom_bindings.js
index 82a1e6c8bf5fe0bde75916f1414605dc178eed49..8b6cc2a5adeed285423e1f7eed03b6f6c90f8868 100644
--- a/chrome/renderer/resources/extensions/automation_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/automation_custom_bindings.js
@@ -211,7 +211,7 @@ automationInternal.onChildTreeID.addListener(function(treeID,
if (!subroot) {
automationUtil.storeTreeCallback(childTreeID, function(root) {
privates(root).impl.setHostNode(node);
-
+ privates(node).impl.childTree = root;
if (root.docLoaded)
privates(root).impl.dispatchEvent(schema.EventType.loadComplete);
@@ -221,6 +221,7 @@ automationInternal.onChildTreeID.addListener(function(treeID,
automationInternal.enableFrame(childTreeID);
} else {
privates(subroot).impl.setHostNode(node);
+ privates(node).impl.childTree = subroot;
}
});
« no previous file with comments | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698