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

Issue 230383003: Webfont CORS-enabled fetching with fallback (Closed)

Created:
6 years, 8 months ago by bashi
Modified:
6 years, 8 months ago
CC:
blink-reviews, Nate Chapin, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Webfont CORS-enabled fetching with fallback Use CORS-enabled fetch method for webfonts. If the CORS-enabled fetch fails, make a second CORS-disabled request so that we won't break existing webpages which don't honor the css3 font spec. We also collect CORS failure counts. BUG=286681 R=ksakamoto@chromium.org, japhet@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171423

Patch Set 1 #

Total comments: 8

Patch Set 2 : Add invalidator, retry only CORS failure #

Total comments: 2

Patch Set 3 : rebase & remove invalidator #

Patch Set 4 : Remove unnecessary include #

Patch Set 5 : Rebase & reverse the enum values #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -3 lines) Patch
M Source/core/css/CSSFontFace.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/css/CSSFontFace.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/css/CSSFontFaceSrcValue.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSFontFaceSrcValue.cpp View 1 2 1 chunk +14 lines, -1 line 0 comments Download
M Source/core/css/RemoteFontFaceSource.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/RemoteFontFaceSource.cpp View 1 2 3 4 3 chunks +27 lines, -0 lines 0 comments Download
M Source/core/fetch/FontResource.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M Source/core/fetch/FontResource.cpp View 1 2 chunks +10 lines, -2 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
bashi
Could you take a look? Notes: - I'm not sure how I can add a ...
6 years, 8 months ago (2014-04-09 09:33:32 UTC) #1
Kunihiko Sakamoto
https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp File Source/core/css/CSSFontFaceSrcValue.cpp (right): https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp#newcode95 Source/core/css/CSSFontFaceSrcValue.cpp:95: return !securityOrigin->canRequest(resource); I'm not familiar with this, but doesn't ...
6 years, 8 months ago (2014-04-09 10:24:18 UTC) #2
bashi
Thank you for review! https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp File Source/core/css/CSSFontFaceSrcValue.cpp (right): https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp#newcode95 Source/core/css/CSSFontFaceSrcValue.cpp:95: return !securityOrigin->canRequest(resource); On 2014/04/09 10:24:18, ...
6 years, 8 months ago (2014-04-10 03:40:56 UTC) #3
Kunihiko Sakamoto
https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp File Source/core/css/CSSFontFaceSrcValue.cpp (right): https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp#newcode95 Source/core/css/CSSFontFaceSrcValue.cpp:95: return !securityOrigin->canRequest(resource); On 2014/04/10 03:40:56, bashik wrote: > On ...
6 years, 8 months ago (2014-04-10 05:49:23 UTC) #4
Kunihiko Sakamoto
https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp File Source/core/css/CSSFontFaceSrcValue.cpp (right): https://codereview.chromium.org/230383003/diff/1/Source/core/css/CSSFontFaceSrcValue.cpp#newcode95 Source/core/css/CSSFontFaceSrcValue.cpp:95: return !securityOrigin->canRequest(resource); On 2014/04/10 05:49:24, Kunihiko Sakamoto wrote: > ...
6 years, 8 months ago (2014-04-10 06:53:09 UTC) #5
bashi
https://codereview.chromium.org/230383003/diff/20001/Source/core/css/CSSFontFaceSrcValue.cpp File Source/core/css/CSSFontFaceSrcValue.cpp (right): https://codereview.chromium.org/230383003/diff/20001/Source/core/css/CSSFontFaceSrcValue.cpp#newcode46 Source/core/css/CSSFontFaceSrcValue.cpp:46: m_resource->addClient(this); On 2014/04/10 05:49:24, Kunihiko Sakamoto wrote: > Resource ...
6 years, 8 months ago (2014-04-10 07:05:50 UTC) #6
Kunihiko Sakamoto
non-owner lgtm
6 years, 8 months ago (2014-04-10 08:32:17 UTC) #7
bashi
+dglazkov
6 years, 8 months ago (2014-04-10 09:16:31 UTC) #8
dglazkov
lgtm, please stay focused on fixing that FIXME :)
6 years, 8 months ago (2014-04-10 15:48:35 UTC) #9
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 8 months ago (2014-04-10 22:04:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/230383003/60001
6 years, 8 months ago (2014-04-10 22:04:20 UTC) #11
bashi
On 2014/04/10 15:48:35, dglazkov wrote: > lgtm, please stay focused on fixing that FIXME :) ...
6 years, 8 months ago (2014-04-10 22:05:02 UTC) #12
bashi
The CQ bit was unchecked by bashi@chromium.org
6 years, 8 months ago (2014-04-10 22:11:27 UTC) #13
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 8 months ago (2014-04-10 23:27:12 UTC) #14
bashi
The CQ bit was unchecked by bashi@chromium.org
6 years, 8 months ago (2014-04-10 23:27:14 UTC) #15
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 8 months ago (2014-04-10 23:35:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/230383003/80001
6 years, 8 months ago (2014-04-10 23:35:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/230383003/80001
6 years, 8 months ago (2014-04-11 23:53:50 UTC) #18
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 8 months ago (2014-04-14 04:52:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/230383003/100001
6 years, 8 months ago (2014-04-14 04:52:08 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 05:50:28 UTC) #21
Message was sent while issue was closed.
Change committed as 171423

Powered by Google App Engine
This is Rietveld 408576698