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

Unified Diff: chrome/renderer/resources/extensions/automation_custom_bindings.js

Issue 2080573003: Track all changed nodes during an update (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make suggested change. Created 4 years, 3 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
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);

Powered by Google App Engine
This is Rietveld 408576698