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

Issue 1138743002: Added <link rel=preconnect> crossorigin attribute (Closed)

Created:
5 years, 7 months ago by Yoav Weiss
Modified:
5 years, 7 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

Added <link rel=preconnect> crossorigin attribute In order to support preconnect for both anonymous and non-anonymous connection pools we need to add support for the crossorigin attribute in <link rel=preconnect>. This CL implements the core functionality of this change on the Blink side. BUG=468005 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195184

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added interface with crossOrigin and fixed link issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -20 lines) Patch
A LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-crossorigin.html View 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-crossorigin-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-valid.html View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-valid-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A Source/core/html/CrossOriginAttribute.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
A Source/core/html/CrossOriginAttribute.cpp View 1 1 chunk +20 lines, -0 lines 0 comments Download
M Source/core/loader/LinkHeader.h View 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/loader/LinkHeader.cpp View 7 chunks +17 lines, -6 lines 0 comments Download
M Source/core/loader/LinkHeaderTest.cpp View 3 chunks +31 lines, -5 lines 0 comments Download
M Source/core/loader/LinkLoader.cpp View 4 chunks +12 lines, -5 lines 0 comments Download
M Source/platform/network/NetworkHints.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/network/NetworkHints.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
A public/platform/WebCrossOriginAttribute.h View 1 chunk +19 lines, -0 lines 0 comments Download
M public/platform/WebPrescientNetworking.h View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Yoav Weiss
Hey Mike, Can you take a look?
5 years, 7 months ago (2015-05-11 12:49:05 UTC) #2
Mike West
LGTM % nit. https://codereview.chromium.org/1138743002/diff/1/Source/core/html/CrossOriginAttribute.h File Source/core/html/CrossOriginAttribute.h (right): https://codereview.chromium.org/1138743002/diff/1/Source/core/html/CrossOriginAttribute.h#newcode19 Source/core/html/CrossOriginAttribute.h:19: return CrossOriginAttributeAnonymous; Is this the behavior ...
5 years, 7 months ago (2015-05-11 12:53:36 UTC) #3
sof
https://codereview.chromium.org/1138743002/diff/1/Source/core/html/CrossOriginAttribute.h File Source/core/html/CrossOriginAttribute.h (right): https://codereview.chromium.org/1138743002/diff/1/Source/core/html/CrossOriginAttribute.h#newcode19 Source/core/html/CrossOriginAttribute.h:19: return CrossOriginAttributeAnonymous; On 2015/05/11 12:53:35, Mike West (traveling. slow.) ...
5 years, 7 months ago (2015-05-11 12:57:31 UTC) #4
Yoav Weiss
On 2015/05/11 12:53:36, Mike West (traveling. slow.) wrote: > LGTM % nit. > > https://codereview.chromium.org/1138743002/diff/1/Source/core/html/CrossOriginAttribute.h ...
5 years, 7 months ago (2015-05-11 12:59:33 UTC) #5
Mike West
On 2015/05/11 at 12:59:33, yoav wrote: > > https://codereview.chromium.org/1138743002/diff/1/Source/core/html/CrossOriginAttribute.h > > File Source/core/html/CrossOriginAttribute.h (right): > ...
5 years, 7 months ago (2015-05-11 13:15:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138743002/20001
5 years, 7 months ago (2015-05-11 14:58:45 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195184
5 years, 7 months ago (2015-05-11 16:45:19 UTC) #10
Yoav Weiss
5 years, 7 months ago (2015-05-11 20:56:41 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1131513004/ by yoav@yoav.ws.

The reason for reverting is: The patch seems to be causing preconnect related
crashes:
https://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Te...

Reverting until I get a clearer picture as to why that is the case..

Powered by Google App Engine
This is Rietveld 408576698