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

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

Issue 314893003: Set referrer for CSS resources (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/CSSFontFaceSrcValue.h ('k') | Source/core/css/CSSImageSetValue.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 f44db9ff4a1753929d7e26a6b175382e54c894b8..052b74ea64329769ccaaf3672c0c3e795f2f78f6 100644
--- a/Source/core/css/CSSFontFaceSrcValue.cpp
+++ b/Source/core/css/CSSFontFaceSrcValue.cpp
@@ -105,6 +105,7 @@ FontResource* CSSFontFaceSrcValue::fetch(Document* document)
if (shouldSetCrossOriginAccessControl(request.url(), securityOrigin)) {
request.setCrossOriginAccessControl(securityOrigin, DoNotAllowStoredCredentials);
}
+ request.mutableResourceRequest().setHTTPReferrer(m_referrer);
m_fetched = document->fetcher()->fetchFont(request);
} else {
// FIXME: CSSFontFaceSrcValue::fetch is invoked when @font-face rule
« no previous file with comments | « Source/core/css/CSSFontFaceSrcValue.h ('k') | Source/core/css/CSSImageSetValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698