- From: Jungkee Song <notifications@github.com>
- Date: Thu, 29 Jun 2017 08:14:41 +0000 (UTC)
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 29 June 2017 08:15:14 UTC
@annevk, I'm trying to find a way during the [Handle Fetch](https://w3c.github.io/ServiceWorker/#handle-fetch) to see whether the navigate request is from the initial about:blank client. We want to set .resultingClientId to the initial client's id in this case. (Please read from https://github.com/w3c/ServiceWorker/issues/1091#issuecomment-311013742 for background.) I couldn't come up with any good way other than thinking about something similar to https://html.spec.whatwg.org/#initialise-the-document-object step 1: > If browsingContext's only entry in its session history is the about:blank Document that was added when browsingContext was created But I don't think that's a proper way as it'd reference the request's client's browsing context from a task in the SW's event loop. Would that be okay? Adding a state to an environment settings object to tell it's tied to the initial about:blank Document seems to be an option. But I know we don't want to add one if that's avoidable. Do you have any idea? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1091#issuecomment-311895380
Received on Thursday, 29 June 2017 08:15:14 UTC