Skip to content

WebCryptoAPI: Test whether a task is scheduled to resolve/reject promises - #54144

Draft
twiss wants to merge 1 commit into
web-platform-tests:masterfrom
twiss:webcrypto-task-ordering
Draft

twiss wants to merge 1 commit into
web-platform-tests:masterfrom
twiss:webcrypto-task-ordering

Conversation

@twiss

@twiss twiss commented Aug 5, 2025

Copy link
Copy Markdown
Member

Add tests to check whether or not a task is scheduled to resolve/reject the promise returned by (a subset of) SubtleCrypto's methods, according to the Web Crypto spec.

This is being debated in w3c/webcrypto#389.

@panva

panva commented Aug 5, 2025 •

Copy link
Copy Markdown
Contributor

As I expected, checking this would make most of the WebCryptoAPI WPTs unusable for Node.js unless we spend considerable effort in fixes.

I wouldn't mind having such tests for w3c/webcrypto#389 but I'd like these to be separate tests files that wouldn't affect the ability to use the suite to determine the actual crypto operations are implemented correctly.

@twiss

twiss commented Aug 5, 2025

Copy link
Copy Markdown
Member Author

Sure, the way I wrote them was mainly the easiest way to find out the existing behavior of implementations, I wasn't proposing to merge them exactly like this, that's why it's just a draft :)

@panva

panva commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

I expected as much, but still just making sure my position is recorded :)

This branch has not been deployed

No deployments
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.

2 participants