blob: ac103981c3cfbd26d8b612863a6d01a33b3ab959 [file] [log] [blame]
Andrew Top61a84952019-04-30 15:07:33 -07001<!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:
12script-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&apos;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>