Bug 1685822 [wpt PR 27117] - [Import Maps] Add tests for rejecting multiple import...
[gecko.git] / dom / security / test / csp / test_policyuri_regression_from_multipolicy.html
blob8838f2fc4587c48ed56f3230f9fc4424a42d758e
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test for Bug 924708</title>
5 <!--
6 test that a report-only policy that uses policy-uri is not incorrectly
7 enforced due to regressions introduced by Bug 836922.
8 -->
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <iframe style="width:200px;height:200px;" id='testframe'></iframe>
14 <script class="testbody" type="text/javascript">
15 SimpleTest.waitForExplicitFinish();
17 var testframe = document.getElementById('testframe');
18 testframe.src = 'file_policyuri_regression_from_multipolicy.html';
19 testframe.addEventListener('load', function checkInlineScriptExecuted () {
20 is(this.contentDocument.getElementById('testdiv').innerHTML,
21 'Inline Script Executed',
22 'Inline script should execute (it would be blocked by the policy, but the policy is report-only)');
23 SimpleTest.finish();
24 });
25 </script>
26 </body>
27 </html>