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

Issue 2257943002: Remove LinkPreload resource type (Closed)

Created:
4 years, 4 months ago by Yoav Weiss
Modified:
4 years, 4 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, tyoshino+watch_chromium.org, gavinp+prerender_chromium.org, blink-reviews-html_chromium.org, loading-reviews+parser_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

Remove LinkPreload resource type This is a refactoring CL, removing the LinkPreload resource type, as it is not really necessary. It also matches the priority of <link rel=preload> with no `as` attribute to regular raw resource types (e.g. XHR). BUG=593267 Committed: https://crrev.com/a5a314d3249ecf1c291b417fbe067e8c2a65fad2 Cr-Commit-Position: refs/heads/master@{#413374}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed defer for former LinkPreload #

Patch Set 3 : simplify priority logic, since raw preload is not deferred #

Patch Set 4 : Fix priority in unit test #

Patch Set 5 : Really fixed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -20 lines) Patch
M third_party/WebKit/Source/core/fetch/Resource.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 4 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 4 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (26 generated)
Yoav Weiss
Hey Charlie :) Took a stab at removing LinkPreload as we discussed. Can you take ...
4 years, 4 months ago (2016-08-18 20:45:56 UTC) #4
Charlie Harrison
Thanks for the patch! I thought we'd have to thread a flag isLinkPreload() through these ...
4 years, 4 months ago (2016-08-18 21:31:34 UTC) #5
Yoav Weiss
On 2016/08/18 21:31:34, Charlie Harrison wrote: > Thanks for the patch! > > I thought ...
4 years, 4 months ago (2016-08-18 22:07:36 UTC) #6
Charlie Harrison
Matching priorities sounds ok to me, but do you think this will have a performance ...
4 years, 4 months ago (2016-08-18 22:10:35 UTC) #7
Charlie Harrison
Also, could you wrap the description to 80 cols and add a BUG=?
4 years, 4 months ago (2016-08-18 22:25:43 UTC) #8
Yoav Weiss
On 2016/08/18 22:10:35, Charlie Harrison wrote: > Matching priorities sounds ok to me, but do ...
4 years, 4 months ago (2016-08-18 22:28:01 UTC) #9
Charlie Harrison
Great, lgtm in that case.
4 years, 4 months ago (2016-08-18 22:34:45 UTC) #11
igrigorik1
Oh, interesting.. If we currently don't match XHR then that's a bug. Per spec, omitted ...
4 years, 4 months ago (2016-08-18 22:36:40 UTC) #12
Yoav Weiss
On 2016/08/18 22:34:45, Charlie Harrison wrote: > Great, lgtm in that case. Removed the defer ...
4 years, 4 months ago (2016-08-20 20:57:06 UTC) #18
Charlie Harrison
Change looks good, I like getting rid of that defer logic. Couple quick points: - ...
4 years, 4 months ago (2016-08-20 22:13:56 UTC) #23
Yoav Weiss
On 2016/08/20 22:13:56, Charlie Harrison wrote: > Change looks good, I like getting rid of ...
4 years, 4 months ago (2016-08-20 22:28:17 UTC) #25
Charlie Harrison
Ha, you're right! Sorry about that guess it was just a bug in the original ...
4 years, 4 months ago (2016-08-20 22:38:45 UTC) #26
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/2257943002/80001
4 years, 4 months ago (2016-08-21 10:20:52 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-21 10:24:44 UTC) #39
commit-bot: I haz the power
4 years, 4 months ago (2016-08-21 10:27:35 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a5a314d3249ecf1c291b417fbe067e8c2a65fad2
Cr-Commit-Position: refs/heads/master@{#413374}

Powered by Google App Engine
This is Rietveld 408576698