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

Issue 708798 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit 22 days ago
Closed: Apr 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Disconnected method names between SnapshotController and Offliners

Project Member Reported by chili@chromium.org, Apr 5 2017

Issue description

SnapshotController's documentation indicate that it's expecting DocumentAvailableInMainFrame and DocumentOnLoadCompletedInMainFrame from WebContentsObserver. However, we are calling those methods from DocumentLoadedInFrame and DidStopLoading inside PrerenderingLoader and BackgroundLoaderOffliner.

We should either update the SnapshotController to be same as the Offliner or update the Offliners to pass on the correct signal
 

Comment 1 by chili@chromium.org, Apr 8 2017

Summary: Disconnected method names between SnapshotController and Offliners (was: Disconnect between SnapshotController and Offliners)
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c92ef59a640cf2dacabef34f8cf798e39c1e61f5

commit c92ef59a640cf2dacabef34f8cf798e39c1e61f5
Author: chili <chili@chromium.org>
Date: Tue Apr 11 21:44:16 2017

[Offline pages] Update background loader to override the WebContentsObserver methods expected by the SnapshotController.

Note that while the same issue exists for prerendering loader, we are not going to update that.

BUG= 708798 

Review-Url: https://codereview.chromium.org/2797013002
Cr-Commit-Position: refs/heads/master@{#463782}

[modify] https://crrev.com/c92ef59a640cf2dacabef34f8cf798e39c1e61f5/chrome/browser/android/offline_pages/background_loader_offliner.cc
[modify] https://crrev.com/c92ef59a640cf2dacabef34f8cf798e39c1e61f5/chrome/browser/android/offline_pages/background_loader_offliner.h
[modify] https://crrev.com/c92ef59a640cf2dacabef34f8cf798e39c1e61f5/chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc

Comment 3 by chili@chromium.org, Apr 11 2017

Status: Fixed (was: Started)

Sign in to add a comment