Skip to content

[Connection-Allowlist] Service Worker WindowClient.navigate()#60335

Draft
chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-7871179
Draft

[Connection-Allowlist] Service Worker WindowClient.navigate()#60335
chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-7871179

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jun 2, 2026

This CL enforces the Service Worker's Connection-Allowlist policies
on navigations triggered via WindowClient.navigate() to see if the URL
is allowed.
Once the navigation request starts, it considers the document being
navigated as the initiator in the current spec and implementation.
We keep that invariant and check for the document's CA for URL allowed
and redirects too.

Test:
ConnectionAllowlistTest.
ServiceWorkerWindowClientNavigateEnforcesServiceWorkerAndDocumentAllowlists
ServiceWorkerWindowClientNavigateRedirectObeysDocumentAllowlist
ServiceWorkerWindowClientNavigateObeysDocumentAllowlist

WPT: service-worker-navigation.sub.https.window.js

Bug: 515272371

Change-Id: I56dc780eee9d92e8f0bdd49bfaf83b9e1d2b71d2
Reviewed-on: https://chromium-review.googlesource.com/7871179
WPT-Export-Revision: 4cbb22e5adab8b5b0c3e413f8cf95f2c224f1322

This CL enforces the Service Worker's Connection-Allowlist policies
on navigations triggered via WindowClient.navigate() to see if the URL
is allowed.
Once the navigation request starts, it considers the document being
navigated as the initiator in the current spec and implementation.
We keep that invariant and check for the document's CA for URL allowed
and redirects too.

Test:
ConnectionAllowlistTest.
ServiceWorkerWindowClientNavigateEnforcesServiceWorkerAndDocumentAllowlists
ServiceWorkerWindowClientNavigateRedirectObeysDocumentAllowlist
ServiceWorkerWindowClientNavigateObeysDocumentAllowlist

WPT: service-worker-navigation.sub.https.window.js

Bug: 515272371

Change-Id: I56dc780eee9d92e8f0bdd49bfaf83b9e1d2b71d2
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-7871179 branch from 9fc017b to a01896c Compare June 2, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants