OOPIF: report both original and destination rfh in AboutToNavigateRenderFrame.
While tracking navigations, devtools needs to know if the RFH reported in the event is
the one of interest (the one being inspected). I could go through the render frame manager,
but it sounds like unnecessary indirection.
BUG=451004
TBR=atwilson (sync tests)
Review URL: https://codereview.chromium.org/868673002
Cr-Commit-Position: refs/heads/master@{#312862}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index e910b978..ff003dd 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2560,12 +2560,13 @@
}
void WebContentsImpl::AboutToNavigateRenderFrame(
- RenderFrameHostImpl* render_frame_host) {
+ RenderFrameHostImpl* old_host,
+ RenderFrameHostImpl* new_host) {
// Notify observers that we will navigate in this RenderFrame.
FOR_EACH_OBSERVER(
WebContentsObserver,
observers_,
- AboutToNavigateRenderFrame(render_frame_host));
+ AboutToNavigateRenderFrame(old_host, new_host));
}
void WebContentsImpl::DidStartNavigationToPendingEntry(