Bug 1880216 - Migrate Fenix docs into Sphinx. r=owlish,geckoview-reviewers,android...
[gecko.git] / dom / html / test / file_iframe_sandbox_a_if11.html
blob8eee71df1d30ea73b096754f6a059678bb1ad289
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Test for Bug 341604</title>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
7 <script>
8 function doStuff() {
9 try {
10 window.parent.parent.ok_wrapper(false, "a frame inside a sandboxed iframe should NOT be same origin with the iframe's parent");
12 catch (e) {
13 window.parent.parent.postMessage({ok: true, desc: "a frame inside a sandboxed iframe is not same origin with the iframe's parent"}, "*");
16 </script>
17 </head>
18 <frameset>
19 <frame onload='doStuff()' src="file_iframe_sandbox_a_if12.html">
20 </frameset>
21 I'm a &lt;frame&gt; inside an iframe which is sandboxed with 'allow-scripts allow-forms'
22 </html>