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

Issue 691506 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

[Mobile devices] Chrome fails to successfully download, save and open offline copy of AMP articles provided through Google search results

Reported by ahalder@etouch.net, Feb 13 2017

Issue description

Application Version: 58.0.3011.0
Android Build Number: 7.1.1/NOF26V
Device: Google Pixel


Steps to reproduce:
1. Launch Chrome > Google search anything ex. amp, google, tesla
2. Tap on any AMP article provided in Google search page
3. Download the page offline > Observe
4. Cancel the ongoing download > Re-download the page offline
5. Open the offline saved page now through download complete; snackbar or  notification > Observe 
6. Visit downloads home > Observe

Observed behavior:
Offline copy of an AMP article downloads forever when downloading for the first time
Offline copy of the AMP articles never save under downloads home and thus doesn't open from download complete; snackbar or notification

Expected behavior:
Chrome should successfully download, save and open the offline page


Frequency: 
<5/5>

Additional comments:
This issue is present from the first build of M58-58.0.2988.0 but works as expected on latest M57-57.0.2987.50

Last Good Build: 57.0.2987.50
First Bad Build: 58.0.2988.0

This issue is seen on Android devices ex. Google Pixel (7.1.1/NMF26U), Samsung Galaxy J2 (5.1.1/LMY47X), Samsung Galaxy S3 (4.3/JSS15J), Samsung Galaxy J7 (5.1.1/LMY48B), Samsung Galaxy S4 (5.0.1/LRX22C), Spice Mi-498 (6.0.1/MOB30W), Karbonn Sparkle V (5.1.1/LMY47V)

Bisect Range: https://chromium.googlesource.com/chromium/src/+log/57.0.2987.50..58.0.2988.0?pretty=fuller&n=10000
 

Comment 1 by ahalder@etouch.net, Feb 13 2017

Please find logs and Video @ http://go/chrome-androidlogs1/6/691506
Labels: -Pri-3 hasbisect-per-revision ReleaseBlock-Stable M-58 Pri-2 Type-Bug-Regression
Owner: carlosk@chromium.org
Status: Assigned (was: Unconfirmed)
Good commit: 445242
Bad commit: 445243
Suspect CL: https://chromium.googlesource.com/chromium/src/+/fe02d6b0fd390b03345187b65e29831f4fb89ac7

@carlosk could you please look into this issue, thanks!
Cc: talo@chromium.org dim...@chromium.org
 Issue 687536  has been merged into this issue.
Components: UI>Browser>Offline
Status: Started (was: Assigned)
I started investigating this and it seems we're not getting neither DocumentAvailableInMainFrame or DocumentOnLoadCompletedInMainFrame signals from the WebContents. Without those the code assumes the page is loading forever and so the download waits indefinitely.

This doesn't seem to be related to my change.
More findings:
* Other observer methods are are *not* being called *for the main frame*: DocumentLoadedInFrame and DidFinishLoad.
* None of the 4 referred methods are neither called when I hit the "back" button, when navigating back to the Google search results paged from the AMP page.
Project Member

Comment 8 by bugdroid1@chromium.org, Feb 21 2017

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

commit f0b30fafe9d73f73c430895d289ab83c3e818d20
Author: carlosk <carlosk@chromium.org>
Date: Tue Feb 21 19:37:00 2017

Last_n: create snapshots from user triggers even if similar quality ones exist.

With this change when a tab-hidden event happens a last_n snapshot will
be created even if one already exists with the same expected quality
level. This should fix cases of very dynamic pagesnot being properly
saved, where contents are completely changed without clear navigation or
loading events being triggered.

This also re-introduces the ignoring of same-page navigations when
listening to DidFinishNavigation so that we don't reset the loading
state of the page in those cases.

BUG= 691506 , 678367 

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

[modify] https://crrev.com/f0b30fafe9d73f73c430895d289ab83c3e818d20/chrome/browser/android/offline_pages/recent_tab_helper.cc
[modify] https://crrev.com/f0b30fafe9d73f73c430895d289ab83c3e818d20/chrome/browser/android/offline_pages/recent_tab_helper.h
[modify] https://crrev.com/f0b30fafe9d73f73c430895d289ab83c3e818d20/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc

Status: Fixed (was: Started)
Any reason why this issue should remain Googler-restricted?
Labels: -Restrict-View-Google

Comment 12 by ahalder@etouch.net, Feb 27 2017

This issue is fixed on latest M58-58.0.3021.0
Status: Verified (was: Fixed)
Cc: petewil@chromium.org dougarnett@chromium.org carlosk@chromium.org
 Issue 663290  has been merged into this issue.

Sign in to add a comment