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

Unified Diff: LayoutTests/http/tests/webfont/same-origin-credentials.html

Issue 1267023004: WebFonts: Send credentials for same origin requests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 4 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/same-origin-credentials.html
diff --git a/LayoutTests/http/tests/webfont/same-origin-credentials.html b/LayoutTests/http/tests/webfont/same-origin-credentials.html
new file mode 100644
index 0000000000000000000000000000000000000000..297cf9a60ab4860818bbc883e8848c9684b3bd5c
--- /dev/null
+++ b/LayoutTests/http/tests/webfont/same-origin-credentials.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="/js-test-resources/js-test.js"></script>
+<script>
+description('Tests that credentials are sent for same origin webfont requests');
+
+window.jsTestIsAsync = true;
+
+document.cookie = 'key=WebFontCredentials';
+
+var font = new FontFace('test', 'url(resources/cookie-match.php?key=WebFontCredentials)');
+font.load().then(function() {
+ debug('PASS');
+ finishJSTest();
+}).catch(function() {
+ debug('FAIL');
+ finishJSTest();
+});
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698