w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Clarify if it should be possible to close the very last open tab with `browsingContext.close` #643

Closed whimboo closed 5 months ago

whimboo commented 5 months ago

The specification for browsingContext.close doesn't say anything that the last tab should not be closable. If that command is run under such a situation the browser will basically unexpectedly shutdown on Linux and Windows, which itself might cause issues for clients given that they didn't expect that.

Shall we deny closing the last open tab, or having an option to force it?

CC @OrKoN, @sadym-chromium, @jgraham, @juliandescottes, @lutien.

whimboo commented 5 months ago

Oh wait. This is actually a dupe of #187.