Andrew Top | 61a8495 | 2019-04-30 15:07:33 -0700 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | |
| 4 | <head> |
| 5 | <!-- Programmatically converted from a WebKit Reftest, please forgive resulting 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 'none'"> |
| 18 | <p>This test checks that Content Security Policy delivered via a meta element is not enforced if the element is outside the document's head.</p> |
| 19 | <script> |
| 20 | alert_assert("PASS (1/1)"); |
| 21 | |
| 22 | </script> |
| 23 | <div id="log"></div> |
| 24 | <script async defer src="../support/checkReport.sub.js?reportExists=false"></script> |
| 25 | </body> |
| 26 | |
| 27 | </html> |