Re: [w3c/ServiceWorker] OpenWindow lacks either sourceDocument or userInvolvement argument when running Navigate algorithm (Issue #1776)

mkruisselbrink left a comment (w3c/ServiceWorker#1776)

> snapshot source snapshot params
> * if "has transient activation" is for user-initiated, I also think it reasonable to set it false for ServiceWorkers.

I'm not sure I understand this point; openWindow requires transient user activation to be called, so presumably it should be set to true here? Although the spec currently phrases this as any window in the origin having transient user activation, I thought one use case that originally was supposed to be supported by openWindow was opening new windows as a response to a notification click event; I'm not sure how that is supposed to work with how the spec if phrased though. But either way, openWindow is only supposed to be able to be used to open new windows when user-initiated.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1776#issuecomment-2946670464
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1776/2946670464@github.com>

Received on Thursday, 5 June 2025 22:42:58 UTC