| 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 e693c96e5c4d269e375b92f870ad506d4c5d7ed1..401d8699d69faf192b2d2673e2428bdc2c2112f4 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -513,7 +513,6 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| OnDidFailLoadWithError)
|
| IPC_MESSAGE_HANDLER_GENERIC(FrameHostMsg_DidCommitProvisionalLoad,
|
| OnDidCommitProvisionalLoad(msg))
|
| - IPC_MESSAGE_HANDLER(FrameHostMsg_DidDropNavigation, OnDidDropNavigation)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateState, OnUpdateState)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_OpenURL, OnOpenURL)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_DocumentOnLoadCompleted,
|
| @@ -1027,15 +1026,6 @@ void RenderFrameHostImpl::OnDidCommitProvisionalLoad(const IPC::Message& msg) {
|
| pending_commit_ = false;
|
| }
|
|
|
| -void RenderFrameHostImpl::OnDidDropNavigation() {
|
| - // At the end of Navigate(), the FrameTreeNode's DidStartLoading is called to
|
| - // force the spinner to start, even if the renderer didn't yet begin the load.
|
| - // If it turns out that the renderer dropped the navigation, the spinner needs
|
| - // to be turned off.
|
| - frame_tree_node_->DidStopLoading();
|
| - navigation_handle_.reset();
|
| -}
|
| -
|
| void RenderFrameHostImpl::OnUpdateState(const PageState& state) {
|
| // TODO(creis): Verify the state's ISN matches the last committed FNE.
|
|
|
| @@ -1679,21 +1669,6 @@ void RenderFrameHostImpl::OnToggleFullscreen(bool enter_fullscreen) {
|
| }
|
|
|
| void RenderFrameHostImpl::OnDidStartLoading(bool to_different_document) {
|
| - // Any main frame load to a new document should reset the load since it will
|
| - // replace the current page and any frames.
|
| - if (to_different_document && !GetParent())
|
| - is_loading_ = false;
|
| -
|
| - // This method should never be called when the frame is loading.
|
| - // Unfortunately, it can happen if a history navigation happens during a
|
| - // BeforeUnload or Unload event.
|
| - // TODO(fdegans): Change this to a DCHECK after LoadEventProgress has been
|
| - // refactored in Blink. See crbug.com/466089
|
| - if (is_loading_) {
|
| - LOG(WARNING) << "OnDidStartLoading was called twice.";
|
| - return;
|
| - }
|
| -
|
| frame_tree_node_->DidStartLoading(to_different_document);
|
| is_loading_ = true;
|
| }
|
| @@ -1890,8 +1865,10 @@ void RenderFrameHostImpl::Navigate(
|
| //
|
| // Blink doesn't send throb notifications for JavaScript URLs, so it is not
|
| // done here either.
|
| - if (!common_params.url.SchemeIs(url::kJavaScriptScheme))
|
| + if (!common_params.url.SchemeIs(url::kJavaScriptScheme)) {
|
| frame_tree_node_->DidStartLoading(true);
|
| + is_loading_ = true;
|
| + }
|
| }
|
|
|
| void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) {
|
| @@ -2232,6 +2209,11 @@ RenderFrameHostImpl::GetMojoImageDownloader() {
|
| return mojo_image_downloader_;
|
| }
|
|
|
| +void RenderFrameHostImpl::ResetLoadingState() {
|
| + if (is_loading())
|
| + OnDidStopLoading();
|
| +}
|
| +
|
| bool RenderFrameHostImpl::IsSameSiteInstance(
|
| RenderFrameHostImpl* other_render_frame_host) {
|
| // As a sanity check, make sure the frame belongs to the same BrowserContext.
|
|
|