-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dedicated worker beacon #39
Comments
In that case, wouldn't the "browsing context" of the dedicated worker be the last browsing context that had the dedicated worker open? |
Yes. What I mean is to support only dedicated worker. Updated to clarify it. |
Correction to my comment above. There are some concerns around the lifetime of a PendingBeacon
To me it looks like Option 2 is the one closest to the current PendingBeacon behavior. But in that case, why not just creating PendingBeacon in the Document and waiting for data from worker? Do we really need to allow PendingBeacon in worker? |
If W can still make network requests then it should be able to create a new Beacon and have it send when it is finally destroyed. |
Ok so basically Option 1. In such case, |
I'm not sure about that disallowing |
https://wicg.github.io/unload-beacon/#issue-fdb03e89
It doesn't make sense to support all types of workers, but only support dedicated worker. It is because a beacon has to be associated with a browsing context and it must not be shared across different context for privacy reason, so service worker & shared worker don't fit the requirement.
The text was updated successfully, but these errors were encountered: