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

Issue 1577073005: Add <link rel=preload> onload support for scripts and styles (Closed)

Created:
4 years, 11 months ago by Yoav Weiss
Modified:
4 years, 9 months ago
Reviewers:
Nate Chapin
CC:
chromium-reviews, tyoshino+watch_chromium.org, gavinp+prerender_chromium.org, blink-reviews-style_chromium.org, blink-reviews-html_chromium.org, loading-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add <link rel=preload> onload support for scripts and styles This CL adds onload support for <link rel=preload> for scripts and styles. Support for other resource types will be added in a followup CL. BUG=552289 Committed: https://crrev.com/f85424718ca7a8ea3f330141ee68b717ae02f2f0 Cr-Commit-Position: refs/heads/master@{#369892}

Patch Set 1 #

Patch Set 2 : Fixed lifetime issue of LinkPreloadResourceClients #

Total comments: 17

Patch Set 3 : Review comments #

Total comments: 1

Patch Set 4 : Reversed order of base classes #

Patch Set 5 : startPreload returns ResourcePtr #

Patch Set 6 : fix crash #

Patch Set 7 : Clearing resource in destructor #

Patch Set 8 : Defeatedly removed image :/ #

Total comments: 15

Patch Set 9 : more review comments #

Patch Set 10 : last review comments #

Patch Set 11 : cleanup #

Patch Set 12 : Fixed adoptPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -27 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/preload/onload_event.html View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.h View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +56 lines, -25 lines 0 comments Download
A third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +84 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/loader/LinkPreloadResourceClients.cpp View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
Yoav Weiss
Hey Nate :) This is the result of our long irc discussions. Can you take ...
4 years, 11 months ago (2016-01-13 12:36:25 UTC) #2
Yoav Weiss
On 2016/01/13 12:36:25, Yoav Weiss wrote: > Hey Nate :) > > This is the ...
4 years, 11 months ago (2016-01-13 14:43:35 UTC) #3
Nate Chapin
https://codereview.chromium.org/1577073005/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp File third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp (right): https://codereview.chromium.org/1577073005/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp#newcode123 third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp:123: Resource::checkNotify(); As long as CSSStyleSheetResource has its own special ...
4 years, 11 months ago (2016-01-13 23:52:24 UTC) #4
Yoav Weiss
Thanks for reviewing! :) Addressed some of the comments and replied to the ones that ...
4 years, 11 months ago (2016-01-14 10:10:02 UTC) #5
Yoav Weiss
On 2016/01/14 10:10:02, Yoav Weiss wrote: > Thanks for reviewing! :) Addressed some of the ...
4 years, 11 months ago (2016-01-14 10:12:17 UTC) #6
Yoav Weiss
hmm, ASAN says that the imageResources (and only the image related ones) are leaking...
4 years, 11 months ago (2016-01-14 17:19:25 UTC) #7
Nate Chapin
I don't see an obvious explanation for the memory leak. I would wonder if ResourceFetcher's ...
4 years, 11 months ago (2016-01-14 23:10:53 UTC) #8
Yoav Weiss
On 2016/01/14 23:10:53, Nate Chapin wrote: > I don't see an obvious explanation for the ...
4 years, 11 months ago (2016-01-15 09:20:19 UTC) #9
Yoav Weiss
On 2016/01/15 09:20:19, Yoav Weiss wrote: > On 2016/01/14 23:10:53, Nate Chapin wrote: > > ...
4 years, 11 months ago (2016-01-15 18:34:00 UTC) #10
Nate Chapin
Looking pretty good, just a few more nits. https://codereview.chromium.org/1577073005/diff/140001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/1577073005/diff/140001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode163 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:163: ResourcePtr<Resource> ...
4 years, 11 months ago (2016-01-15 18:53:58 UTC) #11
Yoav Weiss
https://codereview.chromium.org/1577073005/diff/140001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/1577073005/diff/140001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode163 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:163: ResourcePtr<Resource> DocumentLoader::startPreload(Resource::Type type, FetchRequest& request, LinkLoader* linkLoader) On 2016/01/15 ...
4 years, 11 months ago (2016-01-15 21:40:25 UTC) #12
Nate Chapin
LGTM https://codereview.chromium.org/1577073005/diff/140001/third_party/WebKit/Source/core/loader/LinkLoader.cpp File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right): https://codereview.chromium.org/1577073005/diff/140001/third_party/WebKit/Source/core/loader/LinkLoader.cpp#newcode243 third_party/WebKit/Source/core/loader/LinkLoader.cpp:243: createLinkPreloadResourceClient(document.loader()->startPreload(type, linkRequest, linkLoader), linkLoader, type); On 2016/01/15 21:40:25, ...
4 years, 11 months ago (2016-01-15 21:52:44 UTC) #13
Yoav Weiss
On 2016/01/15 21:52:44, Nate Chapin wrote: > LGTM > > https://codereview.chromium.org/1577073005/diff/140001/third_party/WebKit/Source/core/loader/LinkLoader.cpp > File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right): ...
4 years, 11 months ago (2016-01-15 23:06:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577073005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577073005/200001
4 years, 11 months ago (2016-01-15 23:07:40 UTC) #18
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 11 months ago (2016-01-16 00:30:07 UTC) #20
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/f85424718ca7a8ea3f330141ee68b717ae02f2f0 Cr-Commit-Position: refs/heads/master@{#369892}
4 years, 11 months ago (2016-01-16 00:31:28 UTC) #22
samuong
4 years, 11 months ago (2016-01-16 00:48:34 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/1595793002/ by samuong@chromium.org.

The reason for reverting is: it broke the compile step on the WebKit Linux
Oilpan Builder:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan%....

Powered by Google App Engine
This is Rietveld 408576698