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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed.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/popup-allowed-by-sandbox-is-sandboxed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed.html b/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed.html
index a709cacaf1e6b5ec7310e7353c2b7c684452f047..c89f2e6a807a00bb53b4269f763d76a31165171b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/popup-allowed-by-sandbox-is-sandboxed.html
@@ -9,9 +9,14 @@ if (window.testRunner) {
<p>To run this test outside of DumpRenderTree, please disable your popup blocker!</p>
<p>If you change this test, please be sure to change popup-allowed-by-sandbox-is-sandboxed-control.html as well!</p>
<p>This test passes if it doesn't alert FAIL.</p>
-<iframe sandbox="allow-scripts allow-popups"
+<iframe sandbox="allow-scripts allow-popups allow-same-origin"
src="data:text/html,
<script>
- var win = window.open('data:text/html,<form action=javascript:alert(/FAIL/) ><input type=submit></form><script>document.forms[0].submit(); if (window.testRunner) testRunner.notifyDone();<\/script>', '_blank');
+ var win = window.open('about:blank', '_blank');
+ win.document.write(
+ '<form action=javascript:alert(/FAIL/) ><input type=submit></form>' +
+ '<script>document.forms[0].submit();' +
+ 'if (window.testRunner)testRunner.notifyDone();' +
+ '</' + 'script>');
</script>"
></iframe>

Powered by Google App Engine
This is Rietveld 408576698