-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unloading of workers (and hence Platform Collector) #104
Comments
Potentially relevant: https://html.spec.whatwg.org/#suspendable-worker
|
This reminds me that the closing and unloading of the worker should be handled by garbage collection as we do in Generic Sensors:
|
We probably want to handle suspension (bfcache, suspendable worker, non-fully active document). @rakuco does Generic Sensors handle that? It seems to only send events to active documents (why not fully active?) so I assume that you still keep the platform sensors active while in bfcache etc |
Web Bluetooth has a note about disconnecting on garbage collection:
|
Sorry for the delay here.
Support for the "fully active" concept is pending (see w3c/sensors#415). I believe bfcache is not a concern because sensors are stopped when the page is not visible, which is the case when a page is entering the bfcache if I recall correctly (that's the case for Screen Wake Lock in the Chromium implementation at least). Although the spec says sensors are exposed to workers, the Blink implementation currently only exposes them to Does this help you? |
Find the right hooks to make sure we inform the platform collector when workers are unloaded
The text was updated successfully, but these errors were encountered: