- Electron version: 1.3.3
- Operating system: Windows

I have noticed that a `webview` will emit the `did-navigate-in-page` event when an IFRAME included in the page finishes loading.

Is this the desired behavior? The documentation implies that this event shall only trigger when the main frame's URL hash changes. In any case, a flag `isMainFrame` would be helpful here.

atom/browser/api/atom_api_web_contents.cc
return web_contents()->GetRenderProcessHost()->GetID();
}
WebContents::Type WebContents::GetType() const {
  return type_;
}
bool WebContents::Equal(const WebContents* web_contents) const {
  return GetID() == web_contents->GetID();
}
void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
  if (!url.is_valid()) {
    Emit("did-fail-load",
         static_cast<int>(net::ERR_INVALID_URL),
         net::ErrorToShortString(net::ERR_INVALID_URL),
         url.possibly_invalid_spec(),
         true);
    return;
  }
  content::NavigationController::LoadURLParams params(url);
  GURL http_referrer;
  if (options.Get("httpReferrer", &http_referrer))
    params.referrer = content::Referrer(http_referrer.GetAsReferrer(),
                                        blink::WebReferrerPolicyDefault);
  std::string user_agent;
  if (options.Get("userAgent", &user_agent))
    web_contents()->SetUserAgentOverride(user_agent);
  std::string extra_headers;
  if (options.Get("extraHeaders", &extra_headers))
    params.extra_headers = extra_headers;