-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Reject "connect" request when user closes popup #6489
Comments
Handled for regular tx in #3124 As stated in #3124 (comment) this can apply to the 1102 Connect request as well Previously filed as #5700 |
You have much better searching skills than me, I was expecting this is likely to cause some outcry, feel free to mark as duplicate.
This is bad. I was thinking about some timeout long-polling to as a workaround to this bug. Nope - let the website if the window was closed - the intention of the user was clear - closing window means no. Minimizing window... That could trigger some event too.
|
@marsrobertson Did you find an interim solution to this? I was also thinking about long-polling, but reluctant. |
I did notice that when the popup is triggered open, the event |
Reopening issue, the linked PR doesn't seem to implement Reject on window close. |
This was fixed by #7401 |
Mod edit: when a user closes an eip1102 "Connect" request, we can provide an error/callback message to the dapp (as we now do with the transaction/confirm window)
Demo: https://youtu.be/oy6zN9NM_r4
Closing the window should give some callback message.
Otherwise some sloppy UI may wait for callback that never comes.
The text was updated successfully, but these errors were encountered: