MetaMask / MetaMask/metamask-extension

[Bug]: Wallet API - In Firefox and Webpack builds, when we trigger a transaction with a pending Switch network, once the Switch network is resolved, an extra popup is open and closed before the transaction appears

Open
#27,360 0 comments 0 reactions 0 assignees View on GitHub
flaky tests Sev2-normal team-wallet-api-platform-deprecated type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

In Firefox and Webpack builds, when we trigger a transaction with a pending Switch network, once the Switch network is resolved, an extra popup is open and closed before the transaction appears.

This causes test flakiness.

### Expected behavior

No extra popup opening and closing.

### Screenshots/Recordings
Second ~20 firefox

https://github.com/user-attachments/assets/1d965c8d-0d90-4ce3-a42f-5f435a558196

Second ~30 webpack

https://github.com/user-attachments/assets/52de4b73-340a-4ba0-9755-ffe50d6578cb

### Steps to reproduce

1. Run e2e job in FF or Webpack and observe the extra popup `FIREFOX_SNAP=true ENABLE_MV3=false yarn test:e2e:single test/e2e/tests/request-queuing/dapp1-switch-dapp2-send.spec.js --browser=firefox`

### Error messages or log output

_No response_

### Detection stage

In production (default)

### Version

develop (possibly earlier)

### Build type

None

### Browser

Firefox

### Operating system

Linux

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Run the reported Firefox e2e command and inspect test/e2e/tests/request-queuing/dapp1-switch-dapp2-send.spec.js around the pending Switch-network flow. Reproduce the extra popup in Firefox or Webpack builds, then trace the transaction and popup sequence until the cause is identified. Done means the transaction appears without an extra popup and the e2e test is stable.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
testing-qa, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.