Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch trusted types sinks to use union type #10286

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Apr 18, 2024

After recent discussions we've decided to change trusted types to use union IDL types across all sinks. This requires changes to the IDL and algorithms for the various sinks.

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

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


/dom.html ( diff )
/dynamic-markup-insertion.html ( diff )
/iframe-embed-object.html ( diff )
/infrastructure.html ( diff )
/workers.html ( diff )

@lukewarlow

This comment was marked as outdated.

source Show resolved Hide resolved
This replaces usages of HTMLString and ScriptURLString with their equivalent union types.

The relevant algorithms are also updated to do the TT enforcement.
@lukewarlow lukewarlow marked this pull request as ready for review April 29, 2024 17:21
@lukewarlow lukewarlow requested a review from annevk April 29, 2024 17:21
source Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Show resolved Hide resolved
@lukewarlow
Copy link
Member Author

Pending w3c/trusted-types#510 I've removed the changes to document.write as chances are they'll need updating again.

@lukewarlow lukewarlow requested a review from annevk May 2, 2024 12:09
source Show resolved Hide resolved
source Show resolved Hide resolved
source Show resolved Hide resolved
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.

None yet

2 participants