Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 2825973002: Revert of Last_n: Delete previously saved snapshot when navigating. (Closed)

Created:
3 years, 8 months ago by aboxhall
Modified:
3 years, 8 months ago
Reviewers:
dewittj, carlosk, agrieve
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, Dmitry Titov
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Last_n: Delete previously saved snapshot when navigating. (patchset #3 id:40001 of https://codereview.chromium.org/2824623002/ ) Reason for revert: This test has been crashing: https://uberchromegw.corp.google.com/i/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/41841/steps/chrome_public_test_apk%20on%20Android https://uberchromegw.corp.google.com/i/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/41844/steps/chrome_public_test_apk%20on%20Android Original issue's description: > Last_n: Delete previously saved snapshot when navigating. > > After the switch that made last_n use tab hidden events to trigger the creation > of snapshots a privacy bug was introduced. Saved pages were deleted along with > the creation of a new snapshot, what happened only on the next hide event. If > that never happened before the device would go offline, navigating back would > eventually present the last snapshotted page, potentially from many history > steps ago. > > This change fixes this bug by storing information about the last successful > last_n snapshot (just like it's already done for downloads requests) and using > the offline_id of the previous saved page to delete it upon new navigations. > Unit tests were updated to comply with this behavior change and new integration > tests were added to enforce the privacy requirements IRT snapshot deletion. > > BUG=711770 > > Review-Url: https://codereview.chromium.org/2824623002 > Cr-Commit-Position: refs/heads/master@{#465459} > Committed: https://chromium.googlesource.com/chromium/src/+/0540bc797b12c1ee7d6f648b1502a8a61dc30b8c TBR=dewittj@chromium.org,agrieve@chromium.org,carlosk@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=711770 Review-Url: https://codereview.chromium.org/2825973002 Cr-Commit-Position: refs/heads/master@{#465500} Committed: https://chromium.googlesource.com/chromium/src/+/da7280f6fb27c1dc22f19da890f5f227a0770b00

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -188 lines) Patch
M chrome/android/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java View 8 chunks +7 lines, -134 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.h View 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 4 chunks +6 lines, -29 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc View 6 chunks +16 lines, -18 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
aboxhall
Created Revert of Last_n: Delete previously saved snapshot when navigating.
3 years, 8 months ago (2017-04-19 05:40:02 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2825973002/1
3 years, 8 months ago (2017-04-19 05:40:27 UTC) #3
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 05:41:59 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/da7280f6fb27c1dc22f19da890f5...

Powered by Google App Engine
This is Rietveld 408576698