blob: adcc90a3614e138be60ab1ffd7ccbc37ce2db60e [file] [log] [blame]
Andrew Top61a84952019-04-30 15:07:33 -07001<!DOCTYPE html>
2<!--
3 | This test was modified to not use the HTML4 intrinsic event 'body onload='.
4 -->
5<html>
6
7<head>
8 <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
9 <title>script-src-overrides-default-src</title>
10 <script src="/resources/testharness.js"></script>
11 <script src="/resources/testharnessreport.js"></script>
12 <script src="../support/logTest.sub.js?logs=[]"></script>
13 <script src='../support/alertAssert.sub.js?alerts=["PASS 1 of 2","PASS 2 of 2"]'></script>
14 <!-- enforcing policy:
15default-src about:; script-src 'self' 'unsafe-inline' 'self' 'unsafe-inline'; connect-src 'self';
16-->
17</head>
18
19<body>
20 <script>
21 alert_assert('PASS 1 of 2');
22 document.body.onload=function() { alert_assert('PASS 2 of 2'); }
23 </script>
24 <div id="log"></div>
25 <script async defer src="../support/checkReport.sub.js?reportExists=false"></script>
26</body>
27
28</html>