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
@github-actions
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
@github-actions github-actions bot added the conflicts Pull request has merge conflicts that need resolution label Sep 16, 2025
@github-actions
Copy link

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 db339f5 to 6ffd0c1 Compare October 3, 2025 11:50
@github-actions github-actions bot removed the conflicts Pull request has merge conflicts that need resolution label Oct 3, 2025
@tete17 tete17 force-pushed the Trusted-types-integration-dom branch 2 times, most recently from 0e42cd9 to 97a6433 Compare October 6, 2025 08:38
@tete17 tete17 force-pushed the Trusted-types-integration-dom branch from 97a6433 to bc7ee2e Compare October 12, 2025 20:05
Copy link
Contributor

@Lubrsi Lubrsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, here's a handful of issues I found

@tete17 tete17 force-pushed the Trusted-types-integration-dom branch 3 times, most recently from f548e86 to 658f63f Compare October 13, 2025 10:46
@github-actions github-actions bot added the conflicts Pull request has merge conflicts that need resolution label Oct 13, 2025
@github-actions
Copy link

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 658f63f to f340bbd Compare October 13, 2025 12:54
@github-actions github-actions bot removed the conflicts Pull request has merge conflicts that need resolution label Oct 13, 2025
@tete17 tete17 force-pushed the Trusted-types-integration-dom branch 2 times, most recently from fa0ea61 to a76bf66 Compare October 16, 2025 20:44
@tete17 tete17 requested review from AtkinsSJ and Lubrsi October 16, 2025 21:15
@tete17 tete17 force-pushed the Trusted-types-integration-dom branch from a76bf66 to 78de0e2 Compare October 21, 2025 10:47
@AtkinsSJ AtkinsSJ removed their request for review October 23, 2025 09:28
@Lubrsi Lubrsi merged commit b77f658 into LadybirdBrowser:master Oct 27, 2025
9 checks passed
@tete17 tete17 deleted the Trusted-types-integration-dom branch November 1, 2025 18:34
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