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>scripthash-allowed</title> |
| 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <script src="/content-security-policy/support/alertAssert.sub.js?alerts=%5B%
22PASS%20(1%2F4)%22%2C%22PASS%20(2%2F4)%22%2C%22PASS%20(3%2F4)%22%2C%22PASS%20(4
%2F4)%22%5D"> |
| 10 |
| 11 |
| 12 </script> |
| 13 <!-- enforcing policy: |
| 14 script-src 'self' 'sha256-IFmozo9WnnsMXVl/Ka8XzJ3Nd8yzS2zA2ME0mwtd+Ck=' 'sha256-
jSpTmJKcrnHttKdYM/wCCDJoQY5tdSxNf7zd2prwFfI=' 'sha256-qbgA2XjB2EZKjn/UmK7v/K77t+
fvfxA89QT/K9qPNyE=' 'sha256-K+7X5Ip3msvRvyQzf6fkrWZziuhaUIee1aLnlP5nX10='; conne
ct-src 'self'; |
| 15 --> |
| 16 <script> |
| 17 alert_assert('PASS (1/4)'); |
| 18 |
| 19 </script> |
| 20 <script> |
| 21 alert_assert('PASS (2/4)'); |
| 22 |
| 23 </script> |
| 24 <script> |
| 25 alert_assert('PASS (3/4)'); |
| 26 |
| 27 </script> |
| 28 <script> |
| 29 alert_assert('PASS (4/4)'); |
| 30 |
| 31 </script> |
| 32 </head> |
| 33 |
| 34 <body> |
| 35 <p> |
| 36 This tests the effect of a valid script-hash value. It passes if no CSP
violation is generated, and the alert_assert() is executed. |
| 37 </p> |
| 38 <div id="log"></div> |
| 39 <script async defer src="../support/checkReport.sub.js?reportExists=false"><
/script> |
| 40 </body> |
| 41 |
| 42 </html> |
OLD | NEW |