Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=702439
6 This test verifies that child iframes of CSP documents are
7 permitted to execute javascript: URLs assuming the policy
8 allows this.
9 -->
10 <head>
11 <title>Test for Bug 702439</title>
12 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
13 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
14 </head>
15 <body>
16 <script class="testbody" type="text/javascript">
17 var javascript_link_ran = false;
19 // check that the script in the child frame's javascript: URL ran
20 function checkResult()
21 {
22 is(javascript_link_ran, true,
23 "javascript URL didn't execute");
25 SimpleTest.finish();
26 }
28 SimpleTest.waitForExplicitFinish();
29 </script>
30 <iframe id="i" src="file_subframe_run_js_if_allowed.html"></iframe>
31 </body>
32 </html>