Andrew Top | 61a8495 | 2019-04-30 15:07:33 -0700 | [diff] [blame] | 1 | <!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: |
| 15 | default-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> |