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

Issue 1563263002: Add HTMLPreloadScanner support for <link rel=preload> (Closed)

Created:
4 years, 11 months ago by Yoav Weiss
Modified:
4 years, 11 months ago
CC:
chromium-reviews, gavinp+prerender_chromium.org, blink-reviews-html_chromium.org, tyoshino+watch_chromium.org, loading-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, 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 HTMLPreloadScanner support for <link rel=preload> HTMLPreloadScanner should support <link rel=preload> so that these tags would be discovered as soon as possible, even if the parser is blocked. This CL adds that support. BUG=552290 Committed: https://crrev.com/17a8c60eb46b6617f68d8c450988d15a18cb88dc Cr-Commit-Position: refs/heads/master@{#368826}

Patch Set 1 #

Patch Set 2 : Fixed a test as well as 2 bugs that other tests revealed #

Total comments: 3

Messages

Total messages: 15 (5 generated)
Yoav Weiss
Hey Mike, Can you take a look? It's a fairly small and simple one :)
4 years, 11 months ago (2016-01-07 15:12:33 UTC) #2
Yoav Weiss
On 2016/01/07 15:12:33, Yoav Weiss wrote: > Hey Mike, > > Can you take a ...
4 years, 11 months ago (2016-01-07 16:03:35 UTC) #3
Yoav Weiss
Fixed tests and bugs they found (hopefully. We'll see what the bots say). japhet - ...
4 years, 11 months ago (2016-01-08 10:11:17 UTC) #5
Nate Chapin
LGTM https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp File third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp (right): https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp#newcode52 third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp:52: request.setAvoidBlockingOnLoad(true); It's unfortunate to need to set this ...
4 years, 11 months ago (2016-01-12 03:28:17 UTC) #6
Yoav Weiss
https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp File third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp (right): https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp#newcode52 third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp:52: request.setAvoidBlockingOnLoad(true); On 2016/01/12 03:28:17, Nate Chapin wrote: > It's ...
4 years, 11 months ago (2016-01-12 06:37:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563263002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563263002/20001
4 years, 11 months ago (2016-01-12 06:39:01 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-12 08:43:27 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/17a8c60eb46b6617f68d8c450988d15a18cb88dc Cr-Commit-Position: refs/heads/master@{#368826}
4 years, 11 months ago (2016-01-12 08:44:31 UTC) #12
igrigorik
https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Source/core/loader/LinkLoader.cpp File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right): https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Source/core/loader/LinkLoader.cpp#newcode183 third_party/WebKit/Source/core/loader/LinkLoader.cpp:183: // TODO(yoav): Is this correct? If as is missing ...
4 years, 11 months ago (2016-01-12 22:11:55 UTC) #14
Yoav Weiss
4 years, 11 months ago (2016-01-13 07:07:52 UTC) #15
Message was sent while issue was closed.
On 2016/01/12 22:11:55, igrigorik wrote:
>
https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/core/loader/LinkLoader.cpp (right):
> 
>
https://codereview.chromium.org/1563263002/diff/20001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/loader/LinkLoader.cpp:183: // TODO(yoav): Is
this
> correct? If as is missing or invalid, it should be subject to "connect-src"
CSP
> directives.
> (sorry for late review). To answer the question: yes, I think connect-src is
the
> right default.. we describe preload s declarative fetch(), so it makes sense
to
> default to connect-src. 
> 
> That said, does LinkSubresource default to this policy?

That's exactly why this TODO is here :) I need to look into it and fix it before
shipping.

Powered by Google App Engine
This is Rietveld 408576698