Skip to content

WorkerGlobalScope.setInterval() - update for trusted types#42042

Merged
hamishwillee merged 4 commits intomdn:mainfrom
hamishwillee:tt_workerglobalscope_setinterval
Nov 23, 2025
Merged

WorkerGlobalScope.setInterval() - update for trusted types#42042
hamishwillee merged 4 commits intomdn:mainfrom
hamishwillee:tt_workerglobalscope_setinterval

Conversation

@hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Nov 21, 2025

This updates WorkerGlobalScope.setInterval() for trusted types.

This is virtually the same as Window.setInterval() which has a lot of description. To reduce duplication I link to those docs for the description and examples (which this also did previously).

I added the Trusted type header but in it also link to Window.setInterval() for the security considerations.
Upshot, this highlights the main issue using the header but mostly users will need to go to the Window method for detailed information. I think this is the right level of docs.

Related work tracked in #41507

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

github-actions bot commented Nov 21, 2025

Preview URLs

(comment last updated: 2025-11-23 21:21:51)

hamishwillee and others added 2 commits November 21, 2025 17:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: sideshowbarker <mike@w3.org>
@hamishwillee hamishwillee merged commit 9135ba8 into mdn:main Nov 23, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants