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

Navigating away from a page with an unload user prompt #1227

Closed
elliterate opened this issue Feb 14, 2018 · 3 comments
Closed

Navigating away from a page with an unload user prompt #1227

elliterate opened this issue Feb 14, 2018 · 3 comments

Comments

@elliterate
Copy link

If user prompts spawned in beforeunload event handlers are always dismissed and dismissal means preferring the "Cancel" action, doesn't that mean one would be unable to leave such a page?

@whimboo
Copy link
Contributor

whimboo commented Apr 3, 2023

Duplicate of #1294.

@whimboo whimboo closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2023
@elliterate
Copy link
Author

Duplicate of #1294.

@whimboo I’m not sure if it’s quite the same. #1294 seems to want a way to allow the handler to block (that is, to be fully exercised) whereas I would argue for there to be a way to (optionally?) force its dismissal (e.g., in tests, where it could prevent test cleanup). Those seem like they might be related but independent concerns.

@whimboo
Copy link
Contributor

whimboo commented Apr 6, 2023

Our handling of beforeunload prompts is currently not great and we need to improve. As such please add a comment to the other issue and I'm happy to adjust the summary to match all aspects. We will discuss this topic soon in a WG meeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants