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

Issue 1267023004: WebFonts: Send credentials for same origin requests (Closed)

Created:
5 years, 4 months ago by Kunihiko Sakamoto
Modified:
5 years, 4 months ago
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, tyoshino+watch_chromium.org, nhiroki, falken, kinuko+serviceworker, gavinp+loader_chromium.org, horo+watch_chromium.org, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

WebFonts: Send credentials for same origin requests This fixes a regression from Blink r199364 where credentials are not sent for same-origin webfont requests. This patch basically does the same thing as HTMLImportsController::load(); set AllowStoredCredentials flag only when the request is same-origin. BUG=516192 TEST=http/tests/webfont/same-origin-credentials.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200980

Patch Set 1 : #

Patch Set 2 : Update request to cross-origin after cross-origin redirection #

Patch Set 3 : fix for only webfonts #

Patch Set 4 : windows test fix #

Total comments: 4

Patch Set 5 : comments addressed #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -8 lines) Patch
M LayoutTests/http/tests/serviceworker/fetch-request-resources.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/http/tests/webfont/resources/cookie-match.php View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/webfont/same-origin-credentials.html View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/webfont/same-origin-credentials-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSFontFaceSrcValue.cpp View 1 2 3 4 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
Kunihiko Sakamoto
CORS experts, could you take a look? I'm not 100% sure if my spec read ...
5 years, 4 months ago (2015-08-06 11:02:56 UTC) #6
tyoshino (SeeGerritForStatus)
Sorry for delay. I'm reviewing this now. There're many call sites for this. I'm checking ...
5 years, 4 months ago (2015-08-11 06:22:27 UTC) #7
tyoshino (SeeGerritForStatus)
FYI, regarding the meaning of the Origin header attached to same-origin requests, there's an active ...
5 years, 4 months ago (2015-08-11 09:19:13 UTC) #8
tyoshino (SeeGerritForStatus)
+sof
5 years, 4 months ago (2015-08-11 09:20:08 UTC) #10
Kunihiko Sakamoto
Thanks so much for the thorough call sites review! I've changed CrossOriginAccessControl::handleRedirect() to remove credentials ...
5 years, 4 months ago (2015-08-13 07:25:43 UTC) #11
sof
On 2015/08/13 07:25:43, Kunihiko Sakamoto wrote: > Thanks so much for the thorough call sites ...
5 years, 4 months ago (2015-08-13 17:52:15 UTC) #12
tyoshino (SeeGerritForStatus)
On 2015/08/13 17:52:15, sof wrote: > On 2015/08/13 07:25:43, Kunihiko Sakamoto wrote: > > Thanks ...
5 years, 4 months ago (2015-08-14 14:36:39 UTC) #13
Kunihiko Sakamoto
Thanks for the investigation. > but when I dumped extra_request_headers_.GetHeader(HttpRequestHeaders::kOrigin, ...), it has nothing. Because ...
5 years, 4 months ago (2015-08-17 06:54:40 UTC) #14
tyoshino (SeeGerritForStatus)
On 2015/08/17 06:54:40, Kunihiko Sakamoto wrote: > Thanks for the investigation. > > > but ...
5 years, 4 months ago (2015-08-19 07:03:22 UTC) #15
tyoshino (SeeGerritForStatus)
On 2015/08/19 07:03:22, tyoshino wrote: > On 2015/08/17 06:54:40, Kunihiko Sakamoto wrote: > > Thanks ...
5 years, 4 months ago (2015-08-19 07:22:01 UTC) #16
Kunihiko Sakamoto
Sorry I should have explained the background first. This is to fix a regression by ...
5 years, 4 months ago (2015-08-19 07:50:06 UTC) #17
tyoshino (SeeGerritForStatus)
lgtm
5 years, 4 months ago (2015-08-20 08:39:47 UTC) #18
Kunihiko Sakamoto
Nate, sof, PTAL for owners. Thanks!
5 years, 4 months ago (2015-08-20 08:56:47 UTC) #19
sof
https://codereview.chromium.org/1267023004/diff/140001/LayoutTests/http/tests/webfont/resources/cookie-match.cgi File LayoutTests/http/tests/webfont/resources/cookie-match.cgi (right): https://codereview.chromium.org/1267023004/diff/140001/LayoutTests/http/tests/webfont/resources/cookie-match.cgi#newcode1 LayoutTests/http/tests/webfont/resources/cookie-match.cgi:1: #!/usr/bin/perl -wT nit: is the use of perl crucial? ...
5 years, 4 months ago (2015-08-20 14:56:58 UTC) #20
Kunihiko Sakamoto
https://codereview.chromium.org/1267023004/diff/140001/LayoutTests/http/tests/webfont/resources/cookie-match.cgi File LayoutTests/http/tests/webfont/resources/cookie-match.cgi (right): https://codereview.chromium.org/1267023004/diff/140001/LayoutTests/http/tests/webfont/resources/cookie-match.cgi#newcode1 LayoutTests/http/tests/webfont/resources/cookie-match.cgi:1: #!/usr/bin/perl -wT On 2015/08/20 14:56:58, sof wrote: > nit: ...
5 years, 4 months ago (2015-08-21 01:37:07 UTC) #21
sof
thanks, lgtm.
5 years, 4 months ago (2015-08-21 05:39:43 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267023004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267023004/160001
5 years, 4 months ago (2015-08-21 05:40:05 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/96620)
5 years, 4 months ago (2015-08-21 09:00:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267023004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267023004/160001
5 years, 4 months ago (2015-08-21 09:02:04 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/91160)
5 years, 4 months ago (2015-08-21 09:07:09 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267023004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267023004/180001
5 years, 4 months ago (2015-08-21 09:15:03 UTC) #34
commit-bot: I haz the power
5 years, 4 months ago (2015-08-21 10:50:57 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200980

Powered by Google App Engine
This is Rietveld 408576698