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

Hook beforeunload to cancel existing requests #51

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

Firehed
Copy link
Contributor

@Firehed Firehed commented Oct 16, 2024

We've been seeing passkeys on desktop Safari getting progressively less reliable, as noted in this bug. My hunch is that there's some sort of browser-wide state getting thrown off if requests (in practice, only conditional) hang around.

To be clear, I'm not sure if this will actually work. I haven't witnessed it causing any issues, and it seemed to minorly improve the situation (but the system in question is completely opaque to me, so it's just as likely coincidental) - after testing locally, Safari seemed to be not completely stuck after a couple cycles through. Other than a handful of additional bytes, I don't see much of a downside here.

@Firehed Firehed merged commit cc8b03a into main Oct 16, 2024
1 check passed
@Firehed Firehed deleted the cancel-on-unload branch October 16, 2024 19:15
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.

1 participant