chore: remove account identities petnames bridge - #40312
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [12c3638]
⚡ Performance Benchmarks (1421 ± 112 ms)
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
…ntities-petnames-bridge
Builds ready [d637b91]
⚡ Performance Benchmarks (1464 ± 149 ms)
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
mathieuartu
left a comment
There was a problem hiding this comment.
Code LGTM, let me know when E2E is passing (I think you might need to update some files) and I'll approve 😄
Yup, it's the fixture stuff. Going to let my other extension PR (#39792) go in first. |
…ntities-petnames-bridge
|
Builds ready [991de91]
⚡ Performance Benchmarks (1356 ± 109 ms)
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|



Description
The
AccountIdentitiesPetnamesBridgehas no functional purpose at the moment and is doing unnecessary computation every time an account is added. We no longer rely on the the internal account's name property and instead use the account group name in the account tree controller through out the extension. The name controller's state was used in the<Name>component to provide a name, but that component already primarily uses the account tree's state to get account names.Changelog
CHANGELOG entry: null
Related issues
Fixes: N/A
Manual testing steps
Screenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Primarily deletes unused synchronization code and related wiring; risk is limited to any hidden dependency on account-identity-derived petnames updates.
Overview
Removes the
AccountIdentitiesPetnamesBridgeand its unit test, eliminating the one-way sync that copied internal accountmetadata.nameintoNameControllerpetnames.Updates
metamask-controller.jsto stop delegatingAccountsControllerevents/actions to the petnames bridge messenger and to stop initializing the removed bridge, leaving only the address-book-based petnames bridge wired up.Written by Cursor Bugbot for commit 991de91. This will update automatically on new commits. Configure here.