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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/originHeader/origin-header-for-data.html

Issue 2741513002: [Merge M-57] Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/LayoutTests/http/tests/security/originHeader/origin-header-for-data.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/originHeader/origin-header-for-data.html b/third_party/WebKit/LayoutTests/http/tests/security/originHeader/origin-header-for-data.html
index 631d31b5451a9646129a913dc501d4ab539cd575..5afbcc857aee5f263b779cacf886a4de5c3602f4 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/originHeader/origin-header-for-data.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/originHeader/origin-header-for-data.html
@@ -3,15 +3,20 @@
<script>
if (window.testRunner) {
testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
}
-window.location = 'data:text/html,\
-<form action="http://127.0.0.1:8000/security/originHeader/resources/print-origin.cgi"\
- method="POST">\
-</form>\
-<script>document.forms[0].submit();</scr' + 'ipt>';
+
+window.onload = function() {
+ document.getElementById("f").src = 'data:text/html,\
+ <form action="http://127.0.0.1:8000/security/originHeader/resources/print-origin.cgi"\
+ method="POST">\
+ </form>\
+ <script>document.forms[0].submit();</scr' + 'ipt>';
+}
</script>
</head>
<body>
+<iframe id="f" name="frame-with-data-url"></iframe>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698