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

Issue 1493403002: Make pull to refresh not perform regular reload (with cache revalidation) (Closed)

Created:
5 years ago by kinuko
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, loading-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make pull to refresh not perform regular reload (with cache revalidation) Pull-to-refresh action on Android is currently handled as a regular reload, which causes revalidation of cached contents, however the action would usually imply that the user wants to refresh the 'contents' rather than reloading everything (e.g. to reset the page contents when something's screwed up). This change adds new a reload method, i.e. reloadToRefreshContent, to the navigation controller so that we can distinguish the two reload cases. The new behavior (i.e. non-validating reload on pull-to-refresh) will be only enabled if the following command-line flag is given: "--enable-non-validating-reload-on-refresh-content" (I plan to add chrome://flags once I can land this) BUG=558829 Committed: https://crrev.com/1be5023c6d5cefd95ba73830f506f00a436c1316 Cr-Commit-Position: refs/heads/master@{#365413}

Patch Set 1 #

Patch Set 2 : build fix #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : fix #

Messages

Total messages: 27 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493403002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493403002/20001
5 years ago (2015-12-07 09:04:03 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/153856)
5 years ago (2015-12-07 09:39:30 UTC) #4
kinuko
Hi Nasko, do you think you could review this? The main change is in navigation_controller_impl.cc ...
5 years ago (2015-12-11 04:35:21 UTC) #10
nasko
Hey Avi, Can you help looking at this one? I want to make sure we ...
5 years ago (2015-12-14 23:28:54 UTC) #12
Avi (use Gerrit)
lgtm Looks reasonable. You're looking to remove the flag once things settle down?
5 years ago (2015-12-15 21:34:19 UTC) #13
kinuko
On 2015/12/15 21:34:19, Avi wrote: > lgtm > > Looks reasonable. You're looking to remove ...
5 years ago (2015-12-15 22:06:11 UTC) #14
kinuko
newt@: would you be able to review changes in chrome/android? Thanks,
5 years ago (2015-12-15 22:11:35 UTC) #17
newt (away)
https://codereview.chromium.org/1493403002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/SwipeRefreshHandler.java File chrome/android/java/src/org/chromium/chrome/browser/SwipeRefreshHandler.java (right): https://codereview.chromium.org/1493403002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/SwipeRefreshHandler.java#newcode95 chrome/android/java/src/org/chromium/chrome/browser/SwipeRefreshHandler.java:95: contentViewCore.getWebContents().getNavigationController().reloadToRefreshContent( Instead of a reload, could we simply load ...
5 years ago (2015-12-15 22:40:22 UTC) #18
kinuko
The reload part had remnants of my experiments, thanks for catching it. PTAL https://codereview.chromium.org/1493403002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/SwipeRefreshHandler.java File ...
5 years ago (2015-12-15 22:54:38 UTC) #19
newt (away)
lgtm
5 years ago (2015-12-15 23:50:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493403002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493403002/80001
5 years ago (2015-12-16 01:40:36 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years ago (2015-12-16 02:32:04 UTC) #25
commit-bot: I haz the power
5 years ago (2015-12-16 02:33:09 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1be5023c6d5cefd95ba73830f506f00a436c1316
Cr-Commit-Position: refs/heads/master@{#365413}

Powered by Google App Engine
This is Rietveld 408576698