OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>SRI allows multiple hash values, valid if any passes among strong
est</title> |
| 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="/resources/testharnessreport.js"></script> |
| 7 </head> |
| 8 <body> |
| 9 <script> |
| 10 // Regression test for https://crbug.com/584155 |
| 11 function insertScript(errorCallback) { |
| 12 var script = document.createElement('script'); |
| 13 script.src = 'fail.js'; |
| 14 script.crossOrigin = 'anonymous'; |
| 15 script.integrity = "sha256-deadbeef"; |
| 16 script.onload = function() { assert_unreached(); } |
| 17 script.onerror = errorCallback; |
| 18 document.head.appendChild(script); |
| 19 } |
| 20 |
| 21 insertScript(function() { |
| 22 insertScript(function() { done(); }); |
| 23 }); |
| 24 </script> |
| 25 </body> |
| 26 </html> |
OLD | NEW |