Skip to content

Use SafePromiseResolve to replace the promise resolution steps - #1645

Open
mgaudet wants to merge 1 commit into
whatwg:mainfrom
mgaudet:safe-resolve-no-async
Open

mgaudet wants to merge 1 commit into
whatwg:mainfrom
mgaudet:safe-resolve-no-async

Conversation

@mgaudet

@mgaudet mgaudet commented Oct 1, 2026 •

Copy link
Copy Markdown

The goal here is to improve security of the web platform by avoiding execution of user code when WebIDL resolves a promise. This is done by using the SafePromiseResolve steps provided by the "Thenable Curtailment" proposal.

This PR only changes the promise resolve steps; Async iteration is left alone to keep compatible with TC39's async iteration steps.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

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

Development

Successfully merging this pull request may close these issues.

1 participant