Skip to content

Conversation

@hamishwillee
Copy link
Collaborator

This updates Window.setTimeout() and WorkerGlobalScope.setTimeout() for trusted types, following the same approach as #42042

  • More or less full docs in the windows method. There is a page header warning in the top and a security considerations section in the body.
  • worker method has same top section, but description and examples are cross linked to window method docs. The header links to the security considerations in the window method topic.
  • Examples do not cover the use of TT. We have pretty strong warnings up the top about using this feature at all, so I don't see we need to show TT use.

This also did some consistency fixes across both this and the setInterval methods so that they have the same name for the function param (func) and the arguments are referred to as param rather than args - which is consistent with the template for web apis.

There were a few layout change and improvements to the docs - these map the similar changes done previously for setInterval()

This is part of project being tracked in #41507

@hamishwillee hamishwillee requested a review from a team as a code owner November 24, 2025 04:58
@hamishwillee hamishwillee requested review from sideshowbarker and removed request for a team November 24, 2025 04:58
@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Nov 24, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2025

@sideshowbarker sideshowbarker removed their request for review November 25, 2025 09:07
@hamishwillee hamishwillee requested a review from a team as a code owner December 2, 2025 05:51
@hamishwillee hamishwillee requested review from pepelsbey and removed request for a team December 2, 2025 05:51
@github-actions github-actions bot added the Content:Firefox Content in the Mozilla/Firefox subtree label Dec 2, 2025
@hamishwillee
Copy link
Collaborator Author

@pepelsbey Can you please review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants