Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index d4cc6f50c5f352ef7c908d8f5601785b97335ec6..20af4cdff6f259916bb7bb5182a9fa05ac13e30a 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -1716,6 +1716,19 @@ void RenderFrameHostImpl::CommitNavigation( |
stream_handle_ = body.Pass(); |
} |
+void RenderFrameHostImpl::FailedNavigation( |
+ const CommonNavigationParams& common_params, |
+ const RequestNavigationParams& request_params, |
+ bool has_stale_copy_in_cache, |
+ int error_code) { |
+ // Get back to a clean state, in case a new navigation started without |
+ // completing a RFH swap or unload handler. |
+ SetState(RenderFrameHostImpl::STATE_DEFAULT); |
+ |
+ Send(new FrameMsg_FailedNavigation(routing_id_, common_params, request_params, |
+ has_stale_copy_in_cache, error_code)); |
+} |
+ |
void RenderFrameHostImpl::SetUpMojoIfNeeded() { |
if (service_registry_.get()) |
return; |