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

trigger error if popup is closed prematurely #135

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

tyrasd
Copy link
Member

@tyrasd tyrasd commented Jan 14, 2025

Currently, consumer applications don't get notified when the login process is aborted by closing the login popup window, causing these applications being stuck in a waiting for login to complete state. As the login popup is often on a different domain than the application, there only way to find out that the popup was closed prematurely is by adding a watchdog loop which periodically checks if window is still open.

Fixes openstreetmap/iD#10651

as the popup is typically operating on a cross origin domain, the only reliable way to check the status of the popup is to regularly poll its `closed` status. see https://stackoverflow.com/a/78372804/1627467
@bhousel bhousel merged commit ed355ec into osmlab:main Jan 17, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

Canceling Login Window after Save Freezes Map and Disables Editing
2 participants