| Index: third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-block-same-resource-twice.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-block-same-resource-twice.html b/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-block-same-resource-twice.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2534aa64234ef999cb48378e702d140ac861c158
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-block-same-resource-twice.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <head>
|
| + <title>SRI allows multiple hash values, valid if any passes among strongest</title>
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + </head>
|
| + <body>
|
| + <script>
|
| + // Regression test for https://crbug.com/584155
|
| + function insertScript(errorCallback) {
|
| + var script = document.createElement('script');
|
| + script.src = 'fail.js';
|
| + script.crossOrigin = 'anonymous';
|
| + script.integrity = "sha256-deadbeef";
|
| + script.onload = function() { assert_unreached(); }
|
| + script.onerror = errorCallback;
|
| + document.head.appendChild(script);
|
| + }
|
| +
|
| + insertScript(function() {
|
| + insertScript(function() { done(); });
|
| + });
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|