Skip to content

Conversation

tete17
Copy link
Contributor

@tete17 tete17 commented Sep 2, 2025

This should cover most of the integration with TrustedTypes and the DOM apis

In particular this is the work required to implement Section 4.2 of the TrustedTypes Spec.

It follows the MR of whatwg/dom#1268 as close as we can given it is not merged yet.

There is 2 special points we need to be aware of:

  • The integration with the execCommand is ad-hoc since that standard was abandoned. There are some WPT test to cover them and my goal was to make the test pass and what made sense in my head.
  • A lot of WPT test relay on the WebSocket implementation to be properly hooked with the Fetch api. In particular it is used to force a connect-src violation at the end of the test. I was able to make the test work by replacing it with a simple fetch call in an auxiliary file csp-violations.js but it means we won't see them in our official WPT score until we solve https://github.com/LadybirdBrowser/ladybird/blob/master/Libraries/LibWeb/WebSockets/WebSocket.cpp#L191. I gave it quick try with not much hope but it is clearly outside the scope of this MR.

@tete17 tete17 force-pushed the Trusted-types-integration-dom branch from 3b2562d to be7bf5b Compare September 2, 2025 21:36
@github-actions github-actions bot added the conflicts Pull request has merge conflicts that need resolution label Sep 7, 2025
Copy link

github-actions bot commented Sep 7, 2025

Your pull request has conflicts that need to be resolved before it can be reviewed and merged. Make sure to rebase your branch on top of the latest master.

@tete17 tete17 force-pushed the Trusted-types-integration-dom branch from be7bf5b to 75accf6 Compare September 9, 2025 16:31
@github-actions github-actions bot removed the conflicts Pull request has merge conflicts that need resolution label Sep 9, 2025
@tete17 tete17 force-pushed the Trusted-types-integration-dom branch from 75accf6 to db339f5 Compare September 9, 2025 17:40
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.

1 participant