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

Unified Diff: LayoutTests/http/tests/webfont/webfont-cors.html

Issue 1250793008: Webfont fetch should be CORS-enabled even for same-origin URL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
Index: LayoutTests/http/tests/webfont/webfont-cors.html
diff --git a/LayoutTests/http/tests/webfont/webfont-cors.html b/LayoutTests/http/tests/webfont/webfont-cors.html
index b32c794d9772c3eb54a6aee5b99a58eff775cf23..ea3dfac61bbc144a9145625b910bc23e8203df70 100644
--- a/LayoutTests/http/tests/webfont/webfont-cors.html
+++ b/LayoutTests/http/tests/webfont/webfont-cors.html
@@ -8,6 +8,10 @@
font-family: corsNG;
src: url(http://127.0.0.1:8080/resources/Ahem.ttf);
}
+@font-face {
+ font-family: redirectCorsNG;
+ src: url(/resources/redirect.php?url=http://127.0.0.1:8080/resources/Ahem.ttf);
+}
</style>
<div style="font-family: corsOK;">
This text should be rendered with ahem font.
@@ -15,6 +19,9 @@ This text should be rendered with ahem font.
<div style="font-family: corsNG;">
This text should NOT be rendered with ahem font.
</div>
+<div style="font-family: redirectCorsNG;">
+This text should NOT be rendered with ahem font.
+</div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();

Powered by Google App Engine
This is Rietveld 408576698