New issue
Advanced search Search tips

Issue 660106 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 786481



Sign in to add a comment

Offline Page Cache generates snapshot when navigating to an existing snapshot

Project Member Reported by carlosk@chromium.org, Oct 27 2016

Issue description

Offline Page Cache  is re-saving what is already saved.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 28 2016

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

commit ff2b583208f110e3217e5879a6681b3e1875f7bb
Author: carlosk <carlosk@chromium.org>
Date: Fri Oct 28 02:08:44 2016

Offline Page Cache: do not save a snapshot of a page loaded from a snapshot.

Offline Page Cache was saving snapshots of pages being loaded from
previously saved snapshots, which is unnecessary. This change fixes that
by only enabling the saving if the loaded page is not an "offline" page
itself.

BUG= 660106 

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

[modify] https://crrev.com/ff2b583208f110e3217e5879a6681b3e1875f7bb/chrome/browser/android/offline_pages/recent_tab_helper.cc

Labels: Merge-Request-55
I'd like to merge commit ff2b583208f110e3217e5879a6681b3e1875f7bb into M55.

Comment 3 by dimu@chromium.org, Oct 28 2016

Labels: -Merge-Request-55 Merge-Approved-55 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M55 (branch: 2883)
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 28 2016

Labels: -merge-approved-55 merge-merged-2883
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/55afac3f35ed774b0a1cd79985f495e158fc2da3

commit 55afac3f35ed774b0a1cd79985f495e158fc2da3
Author: Carlos Knippschild <carlosk@chromium.org>
Date: Fri Oct 28 22:38:48 2016

Offline Page Cache: do not save a snapshot of a page loaded from a snapshot.

Offline Page Cache was saving snapshots of pages being loaded from
previously saved snapshots, which is unnecessary. This change fixes that
by only enabling the saving if the loaded page is not an "offline" page
itself.

BUG= 660106 

Review-Url: https://codereview.chromium.org/2448143005
Cr-Commit-Position: refs/heads/master@{#428239}
(cherry picked from commit ff2b583208f110e3217e5879a6681b3e1875f7bb)

Review URL: https://codereview.chromium.org/2462713003 .

Cr-Commit-Position: refs/branch-heads/2883@{#368}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/55afac3f35ed774b0a1cd79985f495e158fc2da3/chrome/browser/android/offline_pages/recent_tab_helper.cc

Status: Fixed (was: Assigned)
Status: Assigned (was: Fixed)
Reopening this because I realized we should also have test coverage for this error. If that was the case this error would not have re-appeared in the first place.
Labels: Hotlist-Fixit
Fixit update: great for fixit. Now that we have an instrumentation test for RecentTabHelper [1] simulating this situation will be much easier (versus with the unit test).

[1] https://cs.chromium.org/chromium/src/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java
Labels: -Pri-1 Pri-3
Lowering priority as the remaining work is a good to have but not a need.

Comment 10 by carl...@google.com, Nov 17 2017

Blocking: 786481

Comment 11 by carl...@google.com, Nov 17 2017

Status: Fixed (was: Assigned)
Created Issue 786481 to track the need of a regression test. Closing this one.

Sign in to add a comment