2017-03-03 23:37:23 +01:00
|
|
|
diff --git content/browser/frame_host/navigation_handle_impl.cc content/browser/frame_host/navigation_handle_impl.cc
|
2017-04-25 01:57:53 +02:00
|
|
|
index 4ebe13f1..11ded80 100644
|
2017-03-03 23:37:23 +01:00
|
|
|
--- content/browser/frame_host/navigation_handle_impl.cc
|
|
|
|
+++ content/browser/frame_host/navigation_handle_impl.cc
|
2017-03-28 20:02:31 +02:00
|
|
|
@@ -257,12 +257,6 @@ net::Error NavigationHandleImpl::GetNetErrorCode() {
|
2017-03-03 23:37:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
RenderFrameHostImpl* NavigationHandleImpl::GetRenderFrameHost() {
|
|
|
|
- // TODO(mkwst): Change this to check against 'READY_TO_COMMIT' once
|
|
|
|
- // ReadyToCommitNavigation is available whether or not PlzNavigate is
|
|
|
|
- // enabled. https://crbug.com/621856
|
|
|
|
- CHECK_GE(state_, WILL_PROCESS_RESPONSE)
|
|
|
|
- << "This accessor should only be called after a response has been "
|
|
|
|
- "delivered for processing.";
|
|
|
|
return render_frame_host_;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git content/browser/frame_host/render_frame_host_impl.cc content/browser/frame_host/render_frame_host_impl.cc
|
2017-04-25 01:57:53 +02:00
|
|
|
index e3c2371..c2ce9bc 100644
|
2017-03-03 23:37:23 +01:00
|
|
|
--- content/browser/frame_host/render_frame_host_impl.cc
|
|
|
|
+++ content/browser/frame_host/render_frame_host_impl.cc
|
|
|
|
@@ -1133,6 +1133,7 @@ void RenderFrameHostImpl::OnDidFailProvisionalLoadWithError(
|
|
|
|
if (navigation_handle_) {
|
|
|
|
navigation_handle_->set_net_error_code(
|
|
|
|
static_cast<net::Error>(params.error_code));
|
|
|
|
+ navigation_handle_->set_render_frame_host(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
frame_tree_node_->navigator()->DidFailProvisionalLoadWithError(this, params);
|