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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-in-http-header-control.html

Issue 1126253007: Block modal dialogs inside sandboxes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebSandboxFlags. Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <iframe src="resources/sandbox.php?sandbox=allow-scripts%20allow-same-origin"></ iframe> 2 <iframe src="resources/sandbox.php?sandbox=allow-scripts%20allow-same-origin"></ iframe>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 window.onload = function() { 7 window.onload = function() {
8 var frame = document.getElementsByTagName("iframe")[0]; 8 var frame = document.getElementsByTagName("iframe")[0];
9 var secret = frame.contentWindow.secret; 9 var secret = frame.contentWindow.secret;
10 if (secret) 10 if (secret)
11 alert("PASS: Iframe was not in a unique origin"); 11 console.log("PASS: Iframe was not in a unique origin");
12 else 12 else
13 alert("FAIL: Iframe was in a unique origin"); 13 console.log("FAIL: Iframe was in a unique origin");
14 }; 14 };
15 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698