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

Unified Diff: Source/core/css/CSSFontFaceSrcValue.cpp

Issue 316353003: Remove font fetching fallback for CORS failures (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add/Update tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSFontFace.cpp ('k') | Source/core/css/RemoteFontFaceSource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontFaceSrcValue.cpp
diff --git a/Source/core/css/CSSFontFaceSrcValue.cpp b/Source/core/css/CSSFontFaceSrcValue.cpp
index 052b74ea64329769ccaaf3672c0c3e795f2f78f6..bcb580c7c92e402c6deedc9a0ad37dcb6af3ffe0 100644
--- a/Source/core/css/CSSFontFaceSrcValue.cpp
+++ b/Source/core/css/CSSFontFaceSrcValue.cpp
@@ -92,14 +92,12 @@ bool CSSFontFaceSrcValue::shouldSetCrossOriginAccessControl(const KURL& resource
{
if (resource.isLocalFile() || resource.protocolIsData())
return false;
- if (m_fetched && m_fetched->isCORSFailed())
- return false;
return !securityOrigin->canRequest(resource);
}
FontResource* CSSFontFaceSrcValue::fetch(Document* document)
{
- if (!m_fetched || m_fetched->isCORSFailed()) {
+ if (!m_fetched) {
FetchRequest request(ResourceRequest(document->completeURL(m_resource)), FetchInitiatorTypeNames::css);
SecurityOrigin* securityOrigin = document->securityOrigin();
if (shouldSetCrossOriginAccessControl(request.url(), securityOrigin)) {
« no previous file with comments | « Source/core/css/CSSFontFace.cpp ('k') | Source/core/css/RemoteFontFaceSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698