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

[Bug]: MetaMask popup not closed when new popup opened

Open sleepytanya opened this issue 1 year ago • 1 comments

Describe the bug

MetaMask popup not closed when popup in another window opened. (supposed to be fixed by this https://github.com/MetaMask/metamask-extension/pull/23771 ?) Navigation between unapproved transactions is not available.

Expected behavior

MetaMask popup should close when other popups opened.

Screenshots/Recordings

https://github.com/MetaMask/metamask-extension/assets/104780023/baf0c210-d3fe-407d-9c67-ab4ec1d28902

https://github.com/MetaMask/metamask-extension/assets/104780023/d07e7b0f-6a72-4b34-be03-9215ea088b28

Steps to reproduce

  1. Trigger MM popup
  2. Don't confirm the transaction
  3. Open new window
  4. Click on MM icon
  5. Notice that MM popup is open in two windows
  6. Trigger new popup
  7. See MM icon shows 2 unapproved transactions but navigation between them is unavailable

Error messages or log output

No response

Version

11.17.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

sleepytanya avatar May 17 '24 04:05 sleepytanya

Can confirm this issue, though it shouldn't be new with v12. The popup (via clicking the metamask icon) is considered different than the confirmation popup, so we'll need to enforce closure there as well.

darkwing avatar Aug 27 '24 19:08 darkwing

Removing regression label, unless we can confirm behavior changed with v12. Expected behavior. The same confirmation request is shown in the popup because it's still in state (it has not been confirmed/denied). test/e2e/json-rpc/switchEthereumChain.spec.js that includes the described scenario and behavior.

Not considered a but, but UX improvements can be made. Adding to design backlog.

WHEN Confirmation is pending AND User opens pop-up THEN Block interaction with wallet until confirmation is confirmed or rejected

Currently, we block interaction by showing the pending confirmation in the pop-up. This creates confusion in where confirmations appear. For consistent confirmation behavior we want tx confirmations to always and only appear in the confirmation window. When the popup is opened and a confirmation is pending, we need a design that blocks interaction and enabled users to open the notification window.

hesterbruikman avatar Oct 24 '24 15:10 hesterbruikman