From b8fb9851707c7d953c33f7e7718b1d9c1c8166b1 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Sun, 11 May 2025 19:10:09 +0200 Subject: [PATCH] Fix integrity matching (#36963) It was missing the ShA case in content-security-policy. Part of #36437 Signed-off-by: Tim van der Lippe Signed-off-by: Tim van der Lippe --- Cargo.lock | 2 +- .../default-src/default-src-sri_hash.sub.html.ini | 12 ------------ .../script-src/script-src-sri_hash.sub.html.ini | 12 ------------ 3 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 tests/wpt/meta/content-security-policy/default-src/default-src-sri_hash.sub.html.ini delete mode 100644 tests/wpt/meta/content-security-policy/script-src/script-src-sri_hash.sub.html.ini diff --git a/Cargo.lock b/Cargo.lock index 628135675c2..de6f6c45426 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/tests/wpt/meta/content-security-policy/default-src/default-src-sri_hash.sub.html.ini b/tests/wpt/meta/content-security-policy/default-src/default-src-sri_hash.sub.html.ini deleted file mode 100644 index ee237b70bc4..00000000000 --- a/tests/wpt/meta/content-security-policy/default-src/default-src-sri_hash.sub.html.ini +++ /dev/null @@ -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 diff --git a/tests/wpt/meta/content-security-policy/script-src/script-src-sri_hash.sub.html.ini b/tests/wpt/meta/content-security-policy/script-src/script-src-sri_hash.sub.html.ini deleted file mode 100644 index 3324bf91bd7..00000000000 --- a/tests/wpt/meta/content-security-policy/script-src/script-src-sri_hash.sub.html.ini +++ /dev/null @@ -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