MetaMask / MetaMask/metamask-extension
[Bug]: Delete KeyringController - `Error setting side panel behavior` and `Error setting up preference listener` appear
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
Whenever I delete the Keyringcontroller from the local storage and restart the wallet I see the following errors which do not seem expected:
- `Error setting side panel behavior`
- `Error setting up preference listener`
I also see `Data error: storage.local does not contain vault data` which does seem expected
### Expected behavior
_No response_
### Screenshots/Recordings
https://github.com/user-attachments/assets/af05440a-6751-466f-90a8-88d6113529b7
### Steps to reproduce
1. Open MM
2. Open dev tools
3. Click Application Local Storage
4. Delete Keyring
5. Disable/Enable extension
6. See console errors
### Error messages or log output
```shell
```
### Where was this bug found?
Live version (from official store)
### Version
13.16.4
### Build type
None
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Reproduce the issue by deleting KeyringController from Chrome local storage, restarting the extension, and observing the side panel and preference-listener errors. Trace the handling of the missing vault state and determine why those errors appear; done means only the expected missing-vault data error remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 48/100