MetaMask / MetaMask/metamask-extension
[Bug]: IPFS ENS - Navigating to an ENS domain throws warning in the background `ReferenceError: name is not defined`
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
Whenever I am navigating to an ENS domain I see the background warning `ReferenceError: name is not defined`.
The functionality is preserved.
In the current production version `12.9.0` I don't see this, but this other one `RangeError#1: Could not decode varint`.
Note: not sure which team owns the ENS browser resolution, so I've assigned it to the Platform team, but feel free to re-assign
### Expected behavior
No errors/warnings.
### Screenshots/Recordings
https://github.com/user-attachments/assets/ad9bec1e-97d1-4dff-8310-6dc9bbfbd0d1
### Steps to reproduce
1. Make sure you have the ENS IPFS resolution from settings
2. Select mainnet
3. Open the background console
4. Open a new tab
5. Go to `https://metamask.eth`
6. See warning
### Error messages or log output
```shell
```
### Detection stage
During release testing
### Version
12.10.0
### Build type
None
### Browser
Chrome
### Operating system
Linux
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Reproduce on Chrome/Linux with MetaMask 12.10.0 by enabling ENS IPFS resolution, selecting mainnet, opening the background console, and navigating to https://metamask.eth. Trace the background ReferenceError: name is not defined and compare it with the reported production behavior; done means ENS navigation still works without background errors or warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100