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

Issue 1245223008: Add unit and layout test to <link rel=preconnect> (Closed)

Created:
5 years, 5 months ago by Yoav Weiss
Modified:
5 years, 3 months ago
Reviewers:
Mike West
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink, gavinp+prerender_chromium.org, gavinp+loader_chromium.org, Nate Chapin, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add unit and layout test to <link rel=preconnect> This CL adds unit tests for preconnect and dns-prefetch, and makes sure that HTTPS hosts are preconnected as such, even for schemeless URLs. It also adds Layout tests to that effect. BUG= Committed: https://crrev.com/a0e443f306acf0fa5f048fecb0d4518d1a1d806a git-svn-id: svn://svn.chromium.org/blink/trunk@199505 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Patch Set 2 : style #

Total comments: 2

Patch Set 3 : Removed "fixes" #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -30 lines) Patch
M LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-crossorigin-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-dynamic-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-valid-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/linkHeader/link-preconnect-in-frame-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/http/tests/linkHeader/link-preconnect-schemeless.php View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/http/tests/linkHeader/link-preconnect-schemeless-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/linkHeader/link-preconnect-schemeless.https.php View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/http/tests/linkHeader/link-preconnect-schemeless.https-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/linkHeader/link-preconnect-valid-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/http/tests/misc/link-preconnect-schemeless.html View 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/misc/link-preconnect-schemeless-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/misc/link-preconnect-schemeless.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/misc/link-preconnect-schemeless.https-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/loader/LinkLoader.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/loader/LinkLoader.cpp View 1 2 3 6 chunks +12 lines, -11 lines 0 comments Download
M Source/core/loader/LinkLoaderTest.cpp View 1 2 3 4 chunks +105 lines, -1 line 0 comments Download
A Source/core/loader/NetworkHintsInterface.h View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
Yoav Weiss
Hey Mike! I bumped into this bug where <link rel=preconnect> doesn't work for href values ...
5 years, 5 months ago (2015-07-23 08:24:23 UTC) #2
Mike West
https://codereview.chromium.org/1245223008/diff/20001/Source/core/loader/LinkLoader.cpp File Source/core/loader/LinkLoader.cpp (right): https://codereview.chromium.org/1245223008/diff/20001/Source/core/loader/LinkLoader.cpp#newcode136 Source/core/loader/LinkLoader.cpp:136: if (relAttribute.isPreconnect() && href.isValid() && (href.protocolIsInHTTPFamily() || href.protocolIs(""))) { ...
5 years, 5 months ago (2015-07-23 09:52:23 UTC) #3
Yoav Weiss
On 2015/07/23 09:52:23, Mike West wrote: > https://codereview.chromium.org/1245223008/diff/20001/Source/core/loader/LinkLoader.cpp > File Source/core/loader/LinkLoader.cpp (right): > > https://codereview.chromium.org/1245223008/diff/20001/Source/core/loader/LinkLoader.cpp#newcode136 ...
5 years, 5 months ago (2015-07-23 10:21:41 UTC) #4
Yoav Weiss
On 2015/07/23 10:21:41, Yoav Weiss wrote: > On 2015/07/23 09:52:23, Mike West wrote: > > ...
5 years, 5 months ago (2015-07-23 10:43:39 UTC) #5
Mike West
On 2015/07/23 at 10:43:39, yoav wrote: > There's something I don't get here, because this ...
5 years, 5 months ago (2015-07-23 11:12:59 UTC) #6
Yoav Weiss
On 2015/07/23 11:12:59, Mike West wrote: > On 2015/07/23 at 10:43:39, yoav wrote: > > ...
5 years, 5 months ago (2015-07-23 12:09:35 UTC) #7
Yoav Weiss
On 2015/07/23 12:09:35, Yoav Weiss wrote: > On 2015/07/23 11:12:59, Mike West wrote: > > ...
5 years, 5 months ago (2015-07-24 10:04:12 UTC) #8
Mike West
:) Keeping the tests sounds good. Can you show me that patch?
5 years, 5 months ago (2015-07-24 10:18:35 UTC) #9
Yoav Weiss
On 2015/07/24 10:18:35, Mike West wrote: > :) > > Keeping the tests sounds good. ...
5 years, 5 months ago (2015-07-24 12:26:38 UTC) #10
Mike West
On 2015/07/24 at 12:26:38, yoav wrote: > On 2015/07/24 10:18:35, Mike West wrote: > > ...
5 years, 5 months ago (2015-07-24 13:10:26 UTC) #11
Yoav Weiss
On 2015/07/24 13:10:26, Mike West wrote: > On 2015/07/24 at 12:26:38, yoav wrote: > > ...
5 years, 5 months ago (2015-07-24 13:12:32 UTC) #12
Mike West
I see. LGTM!
5 years, 4 months ago (2015-07-27 09:10:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1245223008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1245223008/40001
5 years, 4 months ago (2015-07-27 09:21:19 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/38509)
5 years, 4 months ago (2015-07-27 09:23:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1245223008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1245223008/60001
5 years, 4 months ago (2015-07-27 10:07:28 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199505
5 years, 4 months ago (2015-07-27 10:47:08 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:48:23 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a0e443f306acf0fa5f048fecb0d4518d1a1d806a

Powered by Google App Engine
This is Rietveld 408576698