diff --git a/preload/subresource-integrity.html b/preload/subresource-integrity.html index 8bb36a1d321931..b654c002601288 100644 --- a/preload/subresource-integrity.html +++ b/preload/subresource-integrity.html @@ -323,7 +323,7 @@ SRIPreloadTest( true, true, - `Same-origin ${destination} with matching digest does not reuse preload with matching but different digest.`, + `Same-origin ${destination} with matching digest does not reuse preload with matching but weaker digest.`, 2, destination, same_origin_prefix + destination + ext + `?${token()}`, @@ -331,6 +331,17 @@ {integrity: sha256}, ) + SRIPreloadTest( + true, + true, + `Same-origin ${destination} with matching digest does not reuse preload with matching but stronger digest.`, + 2, + destination, + same_origin_prefix + destination + ext + `?${token()}`, + {integrity: sha256}, + {integrity: sha384}, + ) + } // if. } // for-of.