| 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 f33715e80a08c2f938c34874894651b7a4d8eacc..76971bdd695f5525d4b649886a4c2be635d8b386 100644
|
| --- a/chrome/renderer/resources/extensions/automation_custom_bindings.js
|
| +++ b/chrome/renderer/resources/extensions/automation_custom_bindings.js
|
| @@ -216,10 +216,13 @@ automationInternal.onChildTreeID.addListener(function(treeID,
|
|
|
| privates(root).impl.setHostNode(node);
|
|
|
| - if (root.docLoaded)
|
| - privates(root).impl.dispatchEvent(schema.EventType.loadComplete);
|
| + if (root.docLoaded) {
|
| + privates(root).impl.dispatchEvent(
|
| + schema.EventType.loadComplete, 'page');
|
| + }
|
|
|
| - privates(node).impl.dispatchEvent(schema.EventType.childrenChanged);
|
| + privates(node).impl.dispatchEvent(
|
| + schema.EventType.childrenChanged, 'none');
|
| });
|
|
|
| automationInternal.enableFrame(childTreeID);
|
|
|