MetaMask / MetaMask/metamask-extension
[Bug]: Cannot read properties of undefined (reading 'addListener') after Microsoft Edge Upgrade
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
After Microsoft Edge Dev upgraded to Version 152.0.4191.10 (Official build) dev (64-bit) anytime I open MetaMask Extension 13.42 I get this error.
### Expected behavior
MetaMask used to open the side panel and show all the wallets and accounts
### Screenshots/Recordings
_No response_
### Steps to reproduce
1 Open MetaMask extension and error pops up
### Error messages or log output
```shell
Cannot read properties of undefined (reading 'addListener'). disabling and enable extension doesn't change the behaviour. in the error log I see this message A preload for 'chrome-extension://ejbalbakoplchlghecdalmeeeajnimhm/_locales/en/messages.json' is found, but is not used because it is a cross-world extension resource mismatch.
TypeError: Cannot read properties of undefined (reading 'addListener') at c (chrome-extension://ejbalbakoplchlghecdalmeeeajnimhm/6301.03af2121b141ec0f0c94.js:4:253406) at tt (chrome-extension://ejbalbakoplchlghecdalmeeeajnimhm/6301.03af2121b141ec0f0c94.js:5:96426) at e0 (chrome-extension://ejbalbakoplchlghecdalmeeeajnimhm/6301.03af2121b141ec0f0c94.js:5:87722) at async tu (chrome-extension://ejbalbakoplchlghecdalmeeeajnimhm/6301.03af2121b141ec0f0c94.js:5:103062)
Context
extensions://ejbalbakoplchlghecdalmeeeajnimhm/sidepanel.html
Stack Trace
extensions://ejbalbakoplchlghecdalmeeeajnimhm/bootstrap.8678fef1a32faa0607bf.js ((anonymous function)):17:14915
extensions://ejbalbakoplchlghecdalmeeeajnimhm/js-71051298.f329dace5ce75ad12fa7.js (w):3:966
```
### Where was this bug found?
Live version (from official store)
### Version
13.42
### Build type
None
### Browser
Microsoft Edge
### Operating system
Windows
### Hardware wallet
_No response_
### Additional context
ObjectMultiplex - malformed chunk without name "[object Object]"
Context
extensions://ejbalbakoplchlghecdalmeeeajnimhm/sidepanel.html
Stack Trace
extensions://ejbalbakoplchlghecdalmeeeajnimhm/bootstrap.8678fef1a32faa0607bf.js ((anonymous function)):17:14915
extensions://ejbalbakoplchlghecdalmeeeajnimhm/runtime.427cc37b48d5aeb4c3d9.js ((anonymous function)):14070:284323
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-0c1fb56a.b5e9767a4901a6ff7ed4.js (_write):2069:53665
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-0c1fb56a.b5e9767a4901a6ff7ed4.js (R):2:21205
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-0c1fb56a.b5e9767a4901a6ff7ed4.js (P):2:21039
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-0c1fb56a.b5e9767a4901a6ff7ed4.js (T.write):2:24006
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-5a94f17d.e9023dcba06ee03705d5.js (h):277:27091
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-d2eb5610.eea744202b34c785660b.js (a.emit):86:539030
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-5a94f17d.e9023dcba06ee03705d5.js (X):277:19966
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-5a94f17d.e9023dcba06ee03705d5.js (Q):277:19698
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-5a94f17d.e9023dcba06ee03705d5.js (K.push):277:24269
extensions://ejbalbakoplchlghecdalmeeeajnimhm/vendor-d2eb5610.eea744202b34c785660b.js ((anonymous function)):1:42080
### Severity
severe. I'm unable to use MetaMask anymore
Contributor guide
Research direction
Start by reproducing the failure in Microsoft Edge Dev with MetaMask Extension 13.42 and inspect the sidepanel.html context and the reported bootstrap and bundled JavaScript stack traces. Compare behavior around the undefined addListener call and the ObjectMultiplex malformed chunk message. Done means the side panel opens and shows wallets and accounts without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100