OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 |
| 4 <head> |
| 5 <!-- Programmatically converted from a WebKit Reftest, please forgive result
ing idiosyncracies.--> |
| 6 <title>meta-outside-head</title> |
| 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <script src="../support/logTest.sub.js?logs=[]"></script> |
| 10 <script src='../support/alertAssert.sub.js?alerts=["PASS (1/1)"]'></script> |
| 11 <!-- enforcing policy: |
| 12 script-src 'self' 'unsafe-inline' 'none'; connect-src 'self'; |
| 13 --> |
| 14 </head> |
| 15 |
| 16 <body> |
| 17 <meta http-equiv="Content-Security-Policy" content="script-src 'self'"> |
| 18 <p>This test checks that Content Security Policy delivered via a meta elemen
t is not enforced if the element is outside the document's head.</p> |
| 19 <script> |
| 20 var aa = "PASS (1/1)"; |
| 21 </script> |
| 22 <script src="metaHelper.js"></script> |
| 23 <div id="log"></div> |
| 24 <script src="../support/checkReport.sub.js?reportExists=false"></script> |
| 25 </body> |
| 26 |
| 27 </html> |
OLD | NEW |