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

Update the Steps to fire beforeunload to allow to be skipped by WebDriver-BiDi #9890

Open
Lightning00Blade opened this issue Oct 30, 2023 · 0 comments
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest

Comments

@Lightning00Blade
Copy link
Contributor

What problem are you trying to solve?

Currently the WebDriver-BiDi spec browser.close command -
Defines step 4.3 - Close any top-level browsing contexts without prompting to unload.
This will be used also for another command - browsingContext.close when w3c/webdriver-bidi#518 is merged.

We want to close a top-level browsing context without prompting any beforeunload handles.
In the HTML spec there is no definition of how this has to be done and currently works by "magic".

What solutions exist today?

No response

How would you solve it?

A suggestion on how to implement this can be found on this comment w3c/webdriver-bidi#518 (comment) :

It seems like we could reuse the existing `WebDriver BiDi user prompt opened` steps 
by allowing them to return a value that specifies whether to show the prompt or not...

Anything else?

No response

@Lightning00Blade Lightning00Blade added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest labels Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest
Development

No branches or pull requests

1 participant