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

Issue 2257743002: Restore user state on ReloadwithoutSubResourceCacheRevalidation (Closed)

Created:
4 years, 4 months ago by Takashi Toyoshima
Modified:
4 years, 3 months ago
CC:
allada, blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restore user state on ReloadwithoutSubResourceCacheRevalidation Currently, Chrome does not restore user state, scroll position and scale factor for same page navigation regardless of NonValidatingReloadOnNormalReload content feature flag. This patch connects NonValidatingReloadOnNormalReload flag to ReloadwithoutSubResourceCacheRevalidation blink feature flag, and changes the behavior to restore user state even for the same page navigation if ReloadwithoutSubResourceCacheRevalidation flag is enabled. BUG=632358 Committed: https://crrev.com/2a56f872fc3e82ccd819db4378ae2e1ac206c116 Cr-Commit-Position: refs/heads/master@{#416855}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : Fix webkit_unit_tests #

Total comments: 1

Patch Set 4 : fix WebView test side not to rely on same page navigation behavior #

Patch Set 5 : plumb a runtime flag #

Total comments: 11

Patch Set 6 : Addressing Torne's comments at #37 #

Total comments: 2

Patch Set 7 : remove TODO and rename blink flag #

Patch Set 8 : [rebase] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 1 2 3 4 5 6 1 chunk +7 lines, -2 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 77 (32 generated)
Takashi Toyoshima
IIRC, this will make some tests for WebView fail, and need some extra changes to ...
4 years, 4 months ago (2016-08-18 08:36:38 UTC) #3
Takashi Toyoshima
Ok, this error of linux_android_rel_ng looks one I saw before. I'd investigate when happens. failures: ...
4 years, 4 months ago (2016-08-18 11:16:40 UTC) #6
Takashi Toyoshima
When I run these tests on my local machine, they fails with assertion failures, but ...
4 years, 3 months ago (2016-08-24 07:20:07 UTC) #7
Takashi Toyoshima
bokan: can you review this change? you looks a viewport expert, and might be familiar ...
4 years, 3 months ago (2016-08-25 09:35:34 UTC) #12
Takashi Toyoshima
ok, I should check the webkit unit tests first.
4 years, 3 months ago (2016-08-25 10:55:47 UTC) #15
Takashi Toyoshima
Overview mode is enabled by default in Blink https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/frame/Settings.in?q=setLoadWithOverviewMode&l=210 But Android document says it's disabled ...
4 years, 3 months ago (2016-08-25 11:15:11 UTC) #16
Takashi Toyoshima
Flipping flag makes more tests fail. I'll find another way.
4 years, 3 months ago (2016-08-25 11:36:02 UTC) #17
Takashi Toyoshima
+majidvp@chromium.org The Patch Set 3 passes all existing tests. I'd submit this if this is ...
4 years, 3 months ago (2016-08-29 04:41:39 UTC) #23
Takashi Toyoshima
https://codereview.chromium.org/2257743002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2257743002/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1200 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1200: bool shouldRestoreScale = m_currentItem->pageScaleFactor() && !(m_frame->page()->settings().loadWithOverviewMode() && isReloadLoadType(m_loadType)); In ...
4 years, 3 months ago (2016-08-29 06:42:04 UTC) #24
Takashi Toyoshima
majidvp@, can you review the patch set 5? I discuss this at the linked crbug, ...
4 years, 3 months ago (2016-08-29 11:52:14 UTC) #27
bokan
Nit in description: "Now, Chrome does not restore..." replace with "Currently, Chrome does not restore...". ...
4 years, 3 months ago (2016-08-29 13:13:37 UTC) #30
Takashi Toyoshima
Description was fixed. https://codereview.chromium.org/2257743002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/2257743002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2663 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2663: // on KitKat. It will work ...
4 years, 3 months ago (2016-08-30 05:34:24 UTC) #32
Takashi Toyoshima
+torne@ for android_webview OWNERS +tkent@ for WebKit OWNERS
4 years, 3 months ago (2016-08-30 05:52:06 UTC) #34
tkent
It was hard for me to understand the CL description. Is the following correct? > ...
4 years, 3 months ago (2016-08-30 06:39:37 UTC) #35
tkent
https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode133 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:133: NonValidatingReload -> NonValidatingReloadOnNormalReload https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/public/web/WebRuntimeFeatures.h File third_party/WebKit/public/web/WebRuntimeFeatures.h (right): https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/public/web/WebRuntimeFeatures.h#newcode89 third_party/WebKit/public/web/WebRuntimeFeatures.h:89: ...
4 years, 3 months ago (2016-08-30 06:42:06 UTC) #36
Torne
https://codereview.chromium.org/2257743002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/2257743002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode1360 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:1360: + " --></body></html>"; Could you explain why this is ...
4 years, 3 months ago (2016-08-30 12:04:55 UTC) #37
Takashi Toyoshima
Description is updated and reflect tkent's suggestion at #35.
4 years, 3 months ago (2016-08-31 05:48:05 UTC) #40
Takashi Toyoshima
This is answer for #36 by tkent. https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode133 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:133: NonValidatingReload I ...
4 years, 3 months ago (2016-08-31 05:57:02 UTC) #41
tkent
https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode133 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:133: NonValidatingReload On 2016/08/31 at 05:57:02, toyoshim wrote: > I ...
4 years, 3 months ago (2016-08-31 06:30:33 UTC) #42
Takashi Toyoshima
https://codereview.chromium.org/2257743002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/2257743002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode1360 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:1360: + " --></body></html>"; Yes, my change intended to update ...
4 years, 3 months ago (2016-08-31 06:31:19 UTC) #43
tkent
https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/2257743002/diff/80001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode133 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:133: NonValidatingReload On 2016/08/31 at 06:30:33, tkent wrote: > Ok, ...
4 years, 3 months ago (2016-08-31 06:32:44 UTC) #44
Takashi Toyoshima
> Ok, I understand you'd like to add a Blink flag different from the Chromium ...
4 years, 3 months ago (2016-08-31 06:39:18 UTC) #45
tkent
On 2016/08/31 at 06:39:18, toyoshim wrote: > > Ok, I understand you'd like to add ...
4 years, 3 months ago (2016-08-31 06:45:35 UTC) #46
Torne
On 2016/08/31 06:31:19, toyoshim wrote: > https://codereview.chromium.org/2257743002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java > File > android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java > (right): > > ...
4 years, 3 months ago (2016-08-31 13:13:18 UTC) #47
Takashi Toyoshima
> Let's use Blink terms for a Blink flag. ReloadWithoutSubResourceRevalidation? OK. Also, I missed your ...
4 years, 3 months ago (2016-09-01 07:53:37 UTC) #48
tkent
> OK. Also, I missed your last question. Yes, it's cache (re)validation in this context. ...
4 years, 3 months ago (2016-09-01 08:04:38 UTC) #49
Takashi Toyoshima
> OK, but my point is that WebView-using apps might be relying on this behaviour, ...
4 years, 3 months ago (2016-09-01 08:25:09 UTC) #50
Takashi Toyoshima
I checked scrollRestoration behavior at http://yuri.twintail.org/chrome/reload/scroll_restoration.html It works for scroll position, but does not for ...
4 years, 3 months ago (2016-09-01 08:59:03 UTC) #51
Takashi Toyoshima
WebView sounds like expecting navigating to the same URL just works as new page navigation, ...
4 years, 3 months ago (2016-09-01 10:01:45 UTC) #52
Torne
On 2016/09/01 08:25:09, toyoshim wrote: > > OK, but my point is that WebView-using apps ...
4 years, 3 months ago (2016-09-01 12:52:42 UTC) #53
Torne
On 2016/09/01 10:01:45, toyoshim wrote: > WebView sounds like expecting navigating to the same URL ...
4 years, 3 months ago (2016-09-01 12:54:04 UTC) #54
majidvp
> > There's no way for a developer to explicitly reset the webview scale factor ...
4 years, 3 months ago (2016-09-01 19:20:26 UTC) #55
Torne
On 2016/09/01 19:20:26, majidvp wrote: > > I'm not sure how this works, but the ...
4 years, 3 months ago (2016-09-02 13:57:06 UTC) #56
Takashi Toyoshima
majidvp: Thank you for sharing background around the scale factor restoration. If the spec delegates ...
4 years, 3 months ago (2016-09-05 11:11:39 UTC) #57
Torne
On 2016/09/05 11:11:39, toyoshim wrote: > majidvp: Thank you for sharing background around the scale ...
4 years, 3 months ago (2016-09-05 11:23:33 UTC) #58
Takashi Toyoshima
> Can you do that with a data: URI? That's a pretty common use case ...
4 years, 3 months ago (2016-09-05 12:24:16 UTC) #59
Torne
On 2016/09/05 12:24:16, toyoshim wrote: > > Can you do that with a data: URI? ...
4 years, 3 months ago (2016-09-05 12:27:21 UTC) #60
Takashi Toyoshima
I see. Keeping the flag won't help binary update, but still help to get binaries ...
4 years, 3 months ago (2016-09-05 12:49:18 UTC) #61
Takashi Toyoshima
https://codereview.chromium.org/2257743002/diff/100001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/2257743002/diff/100001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2661 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2661: // TODO(crbug.com/642636): This test does not work on Android ...
4 years, 3 months ago (2016-09-05 12:53:58 UTC) #63
tkent
third_party/WebKit lgtm. Please update the CL description.
4 years, 3 months ago (2016-09-05 22:53:44 UTC) #64
Takashi Toyoshima
+jochen for content/child/runtime_features.cc
4 years, 3 months ago (2016-09-06 05:28:54 UTC) #69
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-09-06 15:57:31 UTC) #70
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/2257743002/160001
4 years, 3 months ago (2016-09-07 03:53:34 UTC) #73
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 3 months ago (2016-09-07 05:52:30 UTC) #75
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 05:54:08 UTC) #77
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2a56f872fc3e82ccd819db4378ae2e1ac206c116
Cr-Commit-Position: refs/heads/master@{#416855}

Powered by Google App Engine
This is Rietveld 408576698