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

wallet-ext: fix connection request pending #4534

Merged

Conversation

pchrysochoidis
Copy link
Contributor

  • notify all the tabs with same origin with the permission for the permission response
  • when there is another pending request for the same origin throw an error to the dapp as before but focus or open the permission popup
  • add validation for the permission types
  • content script lazy connect to bg service

Permission Request while another one is pending

Before

Screen.Recording.2022-09-08.at.21.43.16.mov

After

Screen.Recording.2022-09-08.at.21.42.03.mov

Fix permission request response handling while background service is inactive

Before

Screen.Recording.2022-09-08.at.21.11.32.mov

After

Screen.Recording.2022-09-08.at.21.41.27.mov

fixes: #3881

* connect to background service during the first message from a dapp. After that always reconnect
* adds extra permission `tabs` for the extension
* notify all the tabs with same origin with the permission for the permission response
* when there is another pending request for the same origin throw an error to the dapp as before but focus or open the permission popup
* add validation for the permission types
@pchrysochoidis pchrysochoidis merged commit ee5a7d5 into main Sep 15, 2022
@pchrysochoidis pchrysochoidis deleted the pc-wallet-ext-3881-fix-connection-request-pending branch September 15, 2022 16:53
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.

[wallet-ext][bug] Failure to connect to dapp
2 participants