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

Unified Diff: LayoutTests/http/tests/linkHeader/link-dnsprefetch-in-frame.html

Issue 788923003: Adding Link header support for dns-prefetch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed useless dumpAsText from frames Created 5 years, 10 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 | « no previous file | LayoutTests/http/tests/linkHeader/link-dnsprefetch-in-frame-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/linkHeader/link-dnsprefetch-in-frame.html
diff --git a/LayoutTests/http/tests/linkHeader/link-dnsprefetch-in-frame.html b/LayoutTests/http/tests/linkHeader/link-dnsprefetch-in-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..cbdc7c62966d596216e5518ea93c0c56c18fe16d
--- /dev/null
+++ b/LayoutTests/http/tests/linkHeader/link-dnsprefetch-in-frame.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ testRunner.waitUntilDone();
+ }
+ if (window.internals) {
+ internals.settings.setLogDnsPrefetchAndPreconnect(true);
+ internals.settings.setLinkHeaderEnabled(true);
+ }
+</script>
+This test checks if a Link header inside an iframe triggered a dns prefetch.
+<iframe src="resources/link-dnsprefetch-frame.php"></iframe>
« no previous file with comments | « no previous file | LayoutTests/http/tests/linkHeader/link-dnsprefetch-in-frame-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698