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

Issue 1416673008: Converge <link rel=preload> loading logic with preloadScanner (Closed)

Created:
5 years, 1 month ago by Yoav Weiss
Modified:
5 years, 1 month ago
Reviewers:
Nate Chapin, gavinp
CC:
chromium-reviews, tyoshino+watch_chromium.org, gavinp+prerender_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Converge <link rel=preload> loading logic with preloadScanner This CL converges the loader logic of preload links with the loading logic of the HTMLPreloadScanner, in order to avoid double downloads, and because it makes sense. BUG=523036 Committed: https://crrev.com/8a4dc390ef0c85fb466e7cc36051d7bddf9037d7 Cr-Commit-Position: refs/heads/master@{#357820}

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix up the tests #

Patch Set 3 : removed null document check #

Patch Set 4 : Bring back the loader null check #

Total comments: 2

Patch Set 5 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -17 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html View 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 3 4 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp View 1 2 3 4 3 chunks +18 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Yoav Weiss
Hey! :) Starting alignment of <link rel=preload> to the spec. This is the first step. ...
5 years, 1 month ago (2015-10-30 16:22:58 UTC) #2
Nate Chapin
Test failure looks legit. https://codereview.chromium.org/1416673008/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right): https://codereview.chromium.org/1416673008/diff/1/third_party/WebKit/Source/core/loader/LinkLoader.cpp#newcode187 third_party/WebKit/Source/core/loader/LinkLoader.cpp:187: if (!document.loader()) Can preloadIfNeeded be ...
5 years, 1 month ago (2015-10-30 17:56:14 UTC) #3
Yoav Weiss
On 2015/10/30 17:56:14, Nate Chapin wrote: > Test failure looks legit. Yup. Fixed up the ...
5 years, 1 month ago (2015-11-01 15:38:46 UTC) #4
Yoav Weiss
On 2015/11/01 15:38:46, Yoav Weiss wrote: > On 2015/10/30 17:56:14, Nate Chapin wrote: > > ...
5 years, 1 month ago (2015-11-01 16:15:13 UTC) #5
Yoav Weiss
Japhet - can you take a second look, now that it's all green and shiny?
5 years, 1 month ago (2015-11-03 13:25:45 UTC) #6
Nate Chapin
LGTM with a couple nits. https://codereview.chromium.org/1416673008/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.h File third_party/WebKit/Source/core/fetch/ResourceFetcher.h (right): https://codereview.chromium.org/1416673008/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.h#newcode153 third_party/WebKit/Source/core/fetch/ResourceFetcher.h:153: WillBeHeapListHashSet<RawPtrWillBeMember<Resource>>* preloads() { return ...
5 years, 1 month ago (2015-11-03 20:18:11 UTC) #7
Yoav Weiss
On 2015/11/03 20:18:11, Nate Chapin wrote: > LGTM with a couple nits. > > https://codereview.chromium.org/1416673008/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.h ...
5 years, 1 month ago (2015-11-04 14:44:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416673008/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416673008/80001
5 years, 1 month ago (2015-11-04 15:10:11 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-04 15:17:46 UTC) #12
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 15:18:59 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8a4dc390ef0c85fb466e7cc36051d7bddf9037d7
Cr-Commit-Position: refs/heads/master@{#357820}

Powered by Google App Engine
This is Rietveld 408576698