New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 809945 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Loading state tracking improvements in the browser

Project Member Reported by clamy@chromium.org, Feb 7 2018

Issue description

We've been seeing a lot of issues around the loading state tracking in the browser process (issue 789252, issue 786313). In order to fix them, I propose the following:
- remove the DidStart/StopLoading notifications for same-document navigations.
- change the meaning of RenderFrameHostImpl::is_loading to the current document is loading. (and not we have a navigation pending). Following that, we would compute that a FrameTreeNode is loading if its current RFH is loading or we have a NavigationRequest in the FTN or RFH. We would also set RFH to loading when a navigation commits.
- stop resetting the NavigationRequest when we receive a DidStopLoading message: this means that we should stop sending a DidStopLoading IPC when we drop a navigation. This will eventually be solved by the Mojo interface for navigations, but we can have a look at introducing a DroppedNavigation IPC in the meantime.
- remove the WebContentsDelegate::LoadingStateChanged method and have callers use the WebContentsObserver methods (this one is causing issue during tear down).

We might also want to improve the loading state tracking in the renderer process, as it's currently hard to understand how it's set in blink::ProgressTracker. I think it would make more sense for the is_loading info to be in the FrameLoader.
 
Status: Started (was: Assigned)

Comment 2 by clamy@chromium.org, Mar 7 2018

Labels: -Pri-3 Pri-2
Status: Assigned (was: Started)
I am not actively working on this, because I am working on issue 831155 instead.

Some CLs I started several several weeks ago, but didn't have time to commit or finalize:

[Stop doing Did{Start/Stop}Loading for renderer debug URLs]
  https://chromium-review.googlesource.com/c/chromium/src/+/908748

[[For try]Stop doing Did{Start/Stop}Loading]
  https://chromium-review.googlesource.com/c/chromium/src/+/907555

Sign in to add a comment