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

Issue 1975753006: Pull to refresh: Use new reload type RELOAD_MAIN_RESOURCE (Closed)

Created:
4 years, 7 months ago by Takashi Toyoshima
Modified:
4 years, 7 months ago
Reviewers:
kinuko, palmer, Charlie Reis
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Yoav Weiss, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, tyoshino+watch_chromium.org, blink-reviews-api_chromium.org, blink-reviews, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, mkwst+moarreviews-renderer_chromium.org, Nate Chapin, 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

Pull to refresh: Use new reload type RELOAD_MAIN_RESOURCE Current implementation for the new behavior is a little tricky, and should be replaced with a right fix, this change. This change introduces new reload type RELOAD_MAIN_RESOURCE for content. We use this type for IPC, and convert it to FrameLoadTypeReloadMainResource to ask a right kind of reload to Blink. FrameLoadTypeReloadMainResource was previously known as FrameLoadTypeSame. The type didn't explain the behavior, but it meant we validate the main resource and follows protocols for sub resources. Even with this patch, sub resources will be validated on preloading for some reasons if DevTools is open. It should be fixed by followup changes. BUG=558829 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/bada0dc96fe81de27879058e78225e1747b2d57f Cr-Commit-Position: refs/heads/master@{#394336}

Patch Set 1 #

Patch Set 2 : v2 setup #

Patch Set 3 : android build fix #

Total comments: 7

Patch Set 4 : Add better comments #

Total comments: 1

Patch Set 5 : improved comments #

Total comments: 13

Patch Set 6 : review #14 and #16 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -50 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 1 chunk +3 lines, -18 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 chunk +7 lines, -5 lines 0 comments Download
M content/common/frame_message_enums.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 2 chunks +34 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderTypes.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameLoadType.h View 1 2 3 4 5 1 chunk +28 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
Takashi Toyoshima
kinuko@ for blink loader, creis@ for content side navigation, palmer@ for frame_message_enums.h. Could you take ...
4 years, 7 months ago (2016-05-13 10:43:24 UTC) #7
Charlie Reis
content/ LGTM, apart from the question below. https://codereview.chromium.org/1975753006/diff/40001/content/public/common/content_features.cc File content/public/common/content_features.cc (right): https://codereview.chromium.org/1975753006/diff/40001/content/public/common/content_features.cc#newcode52 content/public/common/content_features.cc:52: "NonValidatingReloadOnRefreshContentV2", Not ...
4 years, 7 months ago (2016-05-13 23:27:54 UTC) #8
kinuko
lgtm https://codereview.chromium.org/1975753006/diff/40001/content/public/common/content_features.cc File content/public/common/content_features.cc (right): https://codereview.chromium.org/1975753006/diff/40001/content/public/common/content_features.cc#newcode52 content/public/common/content_features.cc:52: "NonValidatingReloadOnRefreshContentV2", On 2016/05/13 23:27:53, Charlie Reis (slow to ...
4 years, 7 months ago (2016-05-15 14:03:56 UTC) #9
Takashi Toyoshima
https://codereview.chromium.org/1975753006/diff/40001/content/public/common/content_features.cc File content/public/common/content_features.cc (right): https://codereview.chromium.org/1975753006/diff/40001/content/public/common/content_features.cc#newcode52 content/public/common/content_features.cc:52: "NonValidatingReloadOnRefreshContentV2", Yes. I'm replacing actual implementation for the pull ...
4 years, 7 months ago (2016-05-16 03:49:02 UTC) #10
Takashi Toyoshima
I added clearer comments in PS4, but Initial* may need more comments from someone know ...
4 years, 7 months ago (2016-05-16 04:39:38 UTC) #11
Takashi Toyoshima
https://codereview.chromium.org/1975753006/diff/60001/third_party/WebKit/public/web/WebFrameLoadType.h File third_party/WebKit/public/web/WebFrameLoadType.h (right): https://codereview.chromium.org/1975753006/diff/60001/third_party/WebKit/public/web/WebFrameLoadType.h#newcode19 third_party/WebKit/public/web/WebFrameLoadType.h:19: // BackFoward: Hum... wording looks bad. Sorry, let me ...
4 years, 7 months ago (2016-05-16 04:42:14 UTC) #12
Takashi Toyoshima
https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h File third_party/WebKit/public/web/WebFrameLoadType.h (right): https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h#newcode19 third_party/WebKit/public/web/WebFrameLoadType.h:19: // BackForward: I fixed typos, and tried to improve ...
4 years, 7 months ago (2016-05-16 04:53:08 UTC) #13
Charlie Reis
LGTM. https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h File third_party/WebKit/public/web/WebFrameLoadType.h (right): https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h#newcode14 third_party/WebKit/public/web/WebFrameLoadType.h:14: // TODO: Add better explanations for InitialInChildFrame and ...
4 years, 7 months ago (2016-05-16 21:25:39 UTC) #14
Takashi Toyoshima
Thanks! I'm pinging palmer@ for the final approval to submit this. https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h File third_party/WebKit/public/web/WebFrameLoadType.h (right): ...
4 years, 7 months ago (2016-05-17 03:28:08 UTC) #15
palmer
LGTM. https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h File third_party/WebKit/public/web/WebFrameLoadType.h (right): https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h#newcode23 third_party/WebKit/public/web/WebFrameLoadType.h:23: // Revalidates cached entries even if the entries ...
4 years, 7 months ago (2016-05-17 18:09:11 UTC) #16
Takashi Toyoshima
https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h File third_party/WebKit/public/web/WebFrameLoadType.h (right): https://codereview.chromium.org/1975753006/diff/80001/third_party/WebKit/public/web/WebFrameLoadType.h#newcode23 third_party/WebKit/public/web/WebFrameLoadType.h:23: // Revalidates cached entries even if the entries are ...
4 years, 7 months ago (2016-05-18 03:28:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1975753006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1975753006/100001
4 years, 7 months ago (2016-05-18 03:31:34 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-18 05:36:01 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 05:37:08 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/bada0dc96fe81de27879058e78225e1747b2d57f
Cr-Commit-Position: refs/heads/master@{#394336}

Powered by Google App Engine
This is Rietveld 408576698