- From: ikram1201 <notifications@github.com>
- Date: Tue, 01 Dec 2026 16:20:01 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/issues/1500/7330402105@github.com>
ikram1201 left a comment (w3c/ServiceWorker#1500) @monica-ch thanks for taking this through TPAC. I'd be happy to draft the spec PR and the WPT updates for this, if you haven't started on it yet (I saw the action item in the minutes, so please say if you'd rather keep it). My plan, following Jake's proposal and the TPAC outcome: - spec: drop the `about:blank` rejection step in `navigate(url)`, keep the TypeError for URLs that fail to parse, and resolve with null instead of rejecting when the navigation ends in a network error or is blocked (mixed content, `file:`, `view-source:`). - WPT: update `client-navigate.https.html` and `windowclient-navigate.https.html` to match. Per wpt.fyi, Firefox already resolves for mixed content, while Chrome and Safari still reject it, so I'd expect those to need follow-up bugs. Two questions before I start: 1. For the non-rejecting cases, should the promise resolve with `null`? That matches the `WindowClient?` return type and the existing cross-origin case, whereas Jake's comment says `undefined`. 2. For the "navigation ends in a network error" case, the spec currently reads the client's origin right after `Navigate`, so I'd add an explicit wait for the navigation outcome, evaluated against the final URL after redirects to cover the cross-origin leak Jake mentioned. Does that match what you had in mind? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1500#issuecomment-7330402105 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1500/7330402105@github.com>
Received on Wednesday, 2 December 2026 00:20:05 UTC