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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 @font-face { 3 @font-face {
4 font-family: corsOK; 4 font-family: corsOK;
5 src: url(http://127.0.0.1:8080/css/resources/cors-ahem.php); 5 src: url(http://127.0.0.1:8080/css/resources/cors-ahem.php);
6 } 6 }
7 @font-face { 7 @font-face {
8 font-family: corsNG; 8 font-family: corsNG;
9 src: url(http://127.0.0.1:8080/resources/Ahem.ttf); 9 src: url(http://127.0.0.1:8080/resources/Ahem.ttf);
10 } 10 }
11 @font-face {
12 font-family: redirectCorsNG;
13 src: url(/resources/redirect.php?url=http://127.0.0.1:8080/resources/Ahem.tt f);
14 }
11 </style> 15 </style>
12 <div style="font-family: corsOK;"> 16 <div style="font-family: corsOK;">
13 This text should be rendered with ahem font. 17 This text should be rendered with ahem font.
14 </div> 18 </div>
15 <div style="font-family: corsNG;"> 19 <div style="font-family: corsNG;">
16 This text should NOT be rendered with ahem font. 20 This text should NOT be rendered with ahem font.
17 </div> 21 </div>
22 <div style="font-family: redirectCorsNG;">
23 This text should NOT be rendered with ahem font.
24 </div>
18 <script> 25 <script>
19 if (window.testRunner) 26 if (window.testRunner)
20 testRunner.waitUntilDone(); 27 testRunner.waitUntilDone();
21 28
22 document.fonts.ready.then(function() { 29 document.fonts.ready.then(function() {
23 if (window.testRunner) 30 if (window.testRunner)
24 testRunner.notifyDone(); 31 testRunner.notifyDone();
25 }); 32 });
26 </script> 33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698