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

Issue 2555963003: FasterLocationReload: use ReloadMainResource for JS exposed reloads (Closed)

Created:
4 years ago by Takashi Toyoshima
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FasterLocationReload: use ReloadMainResource for JS exposed reloads Now all reloads triggered by user interfaces are replaced by ReloadMainResource, but Location.reload() and History.go() still call the traditional Reload. This patch changes them to call ReloadMainResource insteads under a runtime flag. This flag will be wired to a field study flag later. This is discussed at loading-dev@ in the following thread. https://groups.google.com/a/chromium.org/d/topic/loading-dev/gD-MPRcfwVA/discussion BUG=670237 Committed: https://crrev.com/8cd793e6488686201c9099951b7211abfcf5593f Cr-Commit-Position: refs/heads/master@{#438766}

Patch Set 1 #

Patch Set 2 : fix one DCHECK #

Patch Set 3 : [rebase only] #

Patch Set 4 : add a layout test #

Patch Set 5 : more comments #

Total comments: 6

Patch Set 6 : review #20 #

Total comments: 2

Patch Set 7 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/cache/resources/location-reload-window.html View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/History.cpp View 1 2 1 chunk +12 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/Location.cpp View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
Takashi Toyoshima
ptal
4 years ago (2016-12-09 06:28:49 UTC) #8
tkent
Can you add tests? Also, please get LGTM from someone in loading team before my ...
4 years ago (2016-12-09 06:35:07 UTC) #9
tkent
> Also, please get LGTM from someone in loading team before my approval. oops, not ...
4 years ago (2016-12-09 06:35:30 UTC) #10
Takashi Toyoshima
+yhirano from loading team. yhirano: I will add a layout test for this as Kent-san ...
4 years ago (2016-12-09 09:59:54 UTC) #12
Takashi Toyoshima
yhirano: ptal. Now this has a layout test.
4 years ago (2016-12-13 11:01:28 UTC) #14
Takashi Toyoshima
+kouhei since yhirano is ooo, can you take a look this if you can?
4 years ago (2016-12-14 05:03:28 UTC) #19
kouhei (in TOK)
https://codereview.chromium.org/2555963003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html File third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html (right): https://codereview.chromium.org/2555963003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html#newcode36 third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html:36: }, false); Try addEventListener("msg", e => {...}, {once: true}) ...
4 years ago (2016-12-14 10:57:41 UTC) #20
Takashi Toyoshima
https://codereview.chromium.org/2555963003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html File third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html (right): https://codereview.chromium.org/2555963003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html#newcode36 third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html:36: }, false); On 2016/12/14 10:57:41, kouhei wrote: > Try ...
4 years ago (2016-12-14 12:31:10 UTC) #21
kouhei (in TOK)
lgtm
4 years ago (2016-12-14 22:52:49 UTC) #22
tkent
lgtm https://codereview.chromium.org/2555963003/diff/100001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html File third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html (right): https://codereview.chromium.org/2555963003/diff/100001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html#newcode2 third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html:2: <h1>random</h1> Is this necessary?
4 years ago (2016-12-14 22:59:43 UTC) #25
Takashi Toyoshima
did minor cleanups for the layout test. https://codereview.chromium.org/2555963003/diff/100001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html File third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html (right): https://codereview.chromium.org/2555963003/diff/100001/third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html#newcode2 third_party/WebKit/LayoutTests/http/tests/cache/location-reload.html:2: <h1>random</h1> Oops, ...
4 years ago (2016-12-15 04:45:32 UTC) #28
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/2555963003/120001
4 years ago (2016-12-15 04:46:30 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-15 06:26:19 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-15 06:28:45 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8cd793e6488686201c9099951b7211abfcf5593f
Cr-Commit-Position: refs/heads/master@{#438766}

Powered by Google App Engine
This is Rietveld 408576698