Skip to content
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

Ability to terminate worker realms #694

Open
OrKoN opened this issue Mar 27, 2024 · 0 comments
Open

Ability to terminate worker realms #694

OrKoN opened this issue Mar 27, 2024 · 0 comments
Labels
needs-discussion Issues to be discussed by the working group

Comments

@OrKoN
Copy link
Contributor

OrKoN commented Mar 27, 2024

Puppeteer offers a way to terminate/close workers. For dedicated workers, it can be done by evaluating a script calling self.close() but for other worker types it might not be so easy since the WebDriver instrumentation may prevent workers from closing. Service workers do not support self.close() method as well.

Perhaps, WebDriver BiDi should specify a command for closing a worker realm:

  1. for service workers, following https://w3c.github.io/ServiceWorker/#terminate-service-worker
  2. for other workers, following the self.close() algorithm

This is a useful command when testing lifecycle behavior of workers. cc @Lightning00Blade

@OrKoN OrKoN added the needs-discussion Issues to be discussed by the working group label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-discussion Issues to be discussed by the working group
Projects
None yet
Development

No branches or pull requests

1 participant