| 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 7321710fb7d5a08761de9e5dca8a84438758b75d..f33715e80a08c2f938c34874894651b7a4d8eacc 100644
|
| --- a/chrome/renderer/resources/extensions/automation_custom_bindings.js
|
| +++ b/chrome/renderer/resources/extensions/automation_custom_bindings.js
|
| @@ -210,6 +210,10 @@ automationInternal.onChildTreeID.addListener(function(treeID,
|
| var subroot = AutomationRootNode.get(childTreeID);
|
| if (!subroot) {
|
| automationUtil.storeTreeCallback(childTreeID, function(root) {
|
| + // Return early if the root has already been attached.
|
| + if (root.parent)
|
| + return;
|
| +
|
| privates(root).impl.setHostNode(node);
|
|
|
| if (root.docLoaded)
|
| @@ -333,4 +337,3 @@ forEach(schema, function(k, v) {
|
| });
|
|
|
| exports.$set('binding', binding);
|
| -
|
|
|