-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Remove toggle to turn on/off Per Dapp Selected Network Feature #29301
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. |
❌ API Spec Test Failed. View the report here. |
❌ API Spec Test Failed. View the report here. |
❌ API Spec Test Failed. View the report here. |
ad54e1a
to
52b5b17
Compare
❌ API Spec Test Failed. View the report here. |
52b5b17
to
241d30b
Compare
❌ API Spec Test Failed. View the report here. |
❌ API Spec Test Failed. View the report here. |
1ce5b14
to
257815d
Compare
257815d
to
813fe63
Compare
Builds ready [ac9677b]
Page Load Metrics (1600 ± 42 ms)
|
app/scripts/metamask-controller.js
Outdated
'PreferencesController:stateChange', | ||
listener, | ||
); | ||
listener({ useRequestQueue: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this hook just be a noop now instead? or do we have to immediately call the listener for some other reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done here: c6dc756
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like there's a ts and js version of this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gooood catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed here: c6dc756
Builds ready [c6dc756]
Page Load Metrics (1636 ± 49 ms)
|
Description
The "Select networks for each site" preference toggle on the experimental settings page has been live for many releases now since the toggle has been turned on by default. We meant to remove it a while ago.
This PR removes this toggle
and integrates new versions of the QueuedRequestController and SelectedNetworkController which remove the backend logic it operated.Beyond the fact that this removal is overdue, another reason we should remove this now is that having this setting when turned off is causing a bug with
wallet_switchEthereumChain
and the interaction with the new chain permissions feature.Related issues
Fixes: #2844
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist