const GURL& validated_url,
bool is_main_frame,
content::RenderViewHost* render_view_host) {
- Emit("did-finish-load");
+ base::ListValue args;
+ args.AppendBoolean(is_main_frame);
+ Emit("did-frame-finish-load", args);
+
+ if (is_main_frame)
+ Emit("did-finish-load");
}
void WebContents::DidStartLoading(content::RenderViewHost* render_view_host) {
Emitted when the navigation is done, i.e. the spinner of the tab will stop
spinning, and the onload event was dispatched.
+### Event: 'did-frame-finish-load'
+
+* `event` Event
+* `isMainFrame` Boolean
+
+Emitted when a frame has done navigation.
+
### Event: 'did-start-loading'
### Event: 'did-stop-loading'