Index: LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-crossorigin.html |
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-crossorigin.html b/LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-crossorigin.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aaeeefeeb31febca2d157bc79c708dd79585d9ac |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLLinkElement/link-preconnect-crossorigin.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script> |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.dumpChildFramesAsText(); |
+ } |
+ if (window.internals) |
+ internals.settings.setLogDnsPrefetchAndPreconnect(true); |
+</script> |
+<link rel="preconnect" href="http://prefetch.wut.com.test" crossorigin> |
+<link rel="preconnect" href="http://prefetch.anon.wut.com.test" crossorigin=anonymous> |
+<link rel="preconnect" href="http://prefetch.whatever.wut.com.test" crossorigin=whatever> |
+<link rel="preconnect" href="http://prefetch.credentials.wut.com.test" crossorigin="use-credentials"> |
+This test verifies that a DNS prefetch request is sent and logged. |