metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: UX: Multichain: Slow / Down Network Stalls UI

Open darkwing opened this issue 1 year ago • 0 comments

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

  1. Start local ganache
  2. Add the local network to your network listing (Settings -> Networks -> Add custom network)
  3. In tab 1, connect to dapp 1 on Localhost
  4. In tab 2, connect to dapp 2 on Ethereum Mainnet
  5. Kill local ganache
  6. Click tab 1
  7. Click the MetaMask icon in the extension bar
  8. See UI pop up with spinner

Scenario 2: Kill network, trigger transaction from dapp

  1. Start local ganache
  2. Add the local network to your network listing (Settings -> Networks -> Add custom network)
  3. In tab 1, connect to dapp 1 on Localhost
  4. In tab 2, connect to dapp 2 on Ethereum Mainnet
  5. Kill local ganache
  6. Click tab 1
  7. Trigger a transaction from the dapp
  8. 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

darkwing avatar Jun 28 '24 17:06 darkwing