metamask-extension
metamask-extension copied to clipboard
[Bug]: UX: Multichain: Slow / Down Network Stalls UI
Describe the bug
Within the multichain UI, we remember the network the user was last connected too for a given dapp, and automatically switch to that network when the user returns to a given dapp.
In the change that the user returns to a dapp whose last connected network is unresponsive, the UI may hang.
Expected behavior
The UI would immediately display as requested.
Screenshots/Recordings
https://github.com/MetaMask/metamask-extension/assets/54408225/d7106023-dc9d-4f1b-a890-443698fd38b3
Steps to reproduce
Scenario 1: Kill network, manually click MetaMask extension icon
- Start local ganache
- Add the local network to your network listing (Settings -> Networks -> Add custom network)
- In tab 1, connect to dapp 1 on Localhost
- In tab 2, connect to dapp 2 on Ethereum Mainnet
- Kill local ganache
- Click tab 1
- Click the MetaMask icon in the extension bar
- See UI pop up with spinner
Scenario 2: Kill network, trigger transaction from dapp
- Start local ganache
- Add the local network to your network listing (Settings -> Networks -> Add custom network)
- In tab 1, connect to dapp 1 on Localhost
- In tab 2, connect to dapp 2 on Ethereum Mainnet
- Kill local ganache
- Click tab 1
- Trigger a transaction from the dapp
- See UI pop up with spinner
Error messages or log output
No response
Version
v12
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
No response