Skip to content

Conversation

@hamishwillee
Copy link
Collaborator

ServiceWorkerContainer.register() takes a scriptURL defining the service worker. This updates the docs to reflect that the scriptURL can be a trusted type.

As per our pattern, this adds a top header and a security considerations section. To make that "work" I pushed most of the original top level overview down into a Description section.
I also added just the first example showing how to use TT.

Related docs work can be tracked in:

@hamishwillee hamishwillee requested a review from a team as a code owner December 12, 2025 03:57
@hamishwillee hamishwillee requested review from wbamberg and removed request for a team December 12, 2025 03:57
@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Dec 12, 2025
@github-actions
Copy link
Contributor

Preview URLs

Flaws (1)

URL: /en-US/docs/Web/API/ServiceWorkerContainer/register
Title: ServiceWorkerContainer: register() method
Flaw count: 1

  • broken_links:
    • Link /en-US/docs/Web/Security/Secure_Contexts is a redirect

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/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant