Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 7d03dc1e3299e3e67fcd20ccdb651621e6f66d2f..da56269335b6f2bb8b7022ade678bcd68d2ff4a3 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -2786,6 +2786,7 @@ void WebContentsImpl::SetFocusToLocationBar(bool select_all) { |
} |
void WebContentsImpl::DidStartNavigation(NavigationHandle* navigation_handle) { |
+ static_cast<NavigationHandleImpl*>(navigation_handle)->set_web_contents(this); |
FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
DidStartNavigation(navigation_handle)); |
} |