file_iframe_sandbox_c_if6.html (799B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 341604</title> 6 <script src="/tests/SimpleTest/EventUtils.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 8 9 </head> 10 <script type="text/javascript"> 11 function ok(result, desc) { 12 window.parent.ok_wrapper(result, desc); 13 window.parent.postMessage({ok: result, desc}, "*"); 14 } 15 16 function doStuff() { 17 ok(true, "a document sandboxed with allow-same-origin and allow-scripts should be same origin with its parent and able to run scripts " + 18 "regardless of what kind of whitespace was used in its sandbox attribute"); 19 } 20 </script> 21 <body onLoad="doStuff()"> 22 I am sandboxed but with "allow-same-origin" and "allow-scripts" 23 </body> 24 </html>