Sandbox flags do not support document.domain control
[WebKit-https.git] / LayoutTests / fast / frames / sandboxed-iframe-domain.html
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 description("This test verifies that a sandboxed iframe does not have permission to modify the document.domain property.");
6
7 function performedDomainChange(message, allowed)
8 {
9     debug(message);
10     document.getElementById("test_status").innerHTML = (allowed ? "FAIL" : "PASS");
11     finishJSTest();
12 }
13 </script>
14 </head>
15 <body>
16     <iframe sandbox="allow-scripts allow-same-origin" src="resources/sandboxed-iframe-set-domain.html"></iframe>
17     <p id='test_status'>FAIL: Script didn't run</p>
18 </body>
19 </html>