Skip to content

Conversation

@kkoyung
Copy link
Member

@kkoyung kkoyung commented Nov 17, 2025

In NormalizedAlgorithm::get_key_length, we match the wrong enum variants for HKDF and PBKDF2. Therefore, the function wrongly returns NotSupportedError for them. It causes a few WPT tests fail. This patch fix it with correct enum variants.

Testing: Pass some WPT tests that were expected to fail.

In `NormalizedAlgorithm::get_key_length`, we match the wrong enum variants
for HKDF and PBKDF2. Therefore, the function wrongly returns
`NotSupportedError` for them. It causes a few WPT tests fail. This patch
fix it with correct enum variants.

Testing: Pass some WPT tests that were expected to fail.

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
@kkoyung kkoyung requested a review from gterzian as a code owner November 17, 2025 09:46
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 17, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 17, 2025
@mrobinson mrobinson changed the title script: Fix wrongly matched normalized algorithm script: Fix wrongly matched normalized algorithm in `NormalizedAlgorithm::get_key_length Nov 17, 2025
@mrobinson mrobinson changed the title script: Fix wrongly matched normalized algorithm in `NormalizedAlgorithm::get_key_length script: Fix wrongly matched normalized algorithm in NormalizedAlgorithm::get_key_length Nov 17, 2025
@mrobinson mrobinson added this pull request to the merge queue Nov 17, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 17, 2025
Merged via the queue into servo:main with commit 71de707 Nov 17, 2025
37 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 17, 2025
@kkoyung kkoyung deleted the match-get-key-length branch December 3, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants