Fix integrity matching (#36963)

It was missing the ShA case in content-security-policy.

Part of #36437

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-05-11 19:10:09 +02:00 committed by GitHub
parent 41283220dd
commit b8fb985170
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 25 deletions

2
Cargo.lock generated
View file

@ -1223,7 +1223,7 @@ dependencies = [
[[package]]
name = "content-security-policy"
version = "0.5.4"
source = "git+https://github.com/servo/rust-content-security-policy/?branch=servo-csp#e4c0d325022d45b90dadeb149bfa465e4a6b3047"
source = "git+https://github.com/servo/rust-content-security-policy/?branch=servo-csp#334bfcbf0a3f503b21c90aee6aee30d4b8c9558a"
dependencies = [
"base64 0.22.1",
"bitflags 2.9.0",

View file

@ -1,12 +0,0 @@
[default-src-sri_hash.sub.html]
[multiple matching integrity]
expected: FAIL
[matching integrity]
expected: FAIL
[matching integrity (case-insensitive algorithm)]
expected: FAIL
[matching plus unsupported integrity]
expected: FAIL

View file

@ -1,12 +0,0 @@
[script-src-sri_hash.sub.html]
[multiple matching integrity]
expected: FAIL
[matching integrity]
expected: FAIL
[matching integrity (case-insensitive algorithm)]
expected: FAIL
[matching plus unsupported integrity]
expected: FAIL