-
Notifications
You must be signed in to change notification settings - Fork 5.2k
fix: Delete invalid SelectedNetworkController
state
#26428
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
Merged
Gudahtt
merged 2 commits into
develop
from
delete-invalid-ids-from-selected-network-controller-state
Aug 14, 2024
Merged
fix: Delete invalid SelectedNetworkController
state
#26428
Gudahtt
merged 2 commits into
develop
from
delete-invalid-ids-from-selected-network-controller-state
Aug 14, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26428 +/- ##
===========================================
+ Coverage 69.99% 70.02% +0.03%
===========================================
Files 1424 1425 +1
Lines 49984 50028 +44
Branches 13872 13883 +11
===========================================
+ Hits 34986 35031 +45
+ Misses 14998 14997 -1 ☔ View full report in Codecov by Sentry. |
Gudahtt
commented
Aug 14, 2024
Builds ready [70795ce]
Page Load Metrics (76 ± 16 ms)
Bundle size diffs
|
The `SelectedNetworkController` state is cleared if any invalid `networkConfigurationId`s are found in state. We are seeing reports of this happening in production in v12.0.1. The suspected cause is `NetworkController` state corruption. We resolved a few cases of this in v12.0.1, but for users that were affected by this, the invalid IDs may have propogated to the `SelectedNetworkController` state already. That is what this migration intends to fix. Fixes #26309
990b597
to
26f7fa1
Compare
|
DDDDDanica
approved these changes
Aug 14, 2024
LGTM ! The tests are very solid |
jiexi
reviewed
Aug 14, 2024
jiexi
reviewed
Aug 14, 2024
jiexi
approved these changes
Aug 14, 2024
Builds ready [26f7fa1]
Page Load Metrics (144 ± 159 ms)
Bundle size diffs
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
SelectedNetworkController
state is cleared if any invalidnetworkConfigurationId
s are found in state. We are seeing reports of this happening in production in v12.0.1.The suspected cause is
NetworkController
state corruption. We resolved a few cases of this in v12.0.1, but for users that were affected by this, the invalid IDs may have propogated to theSelectedNetworkController
state already. That is what this migration intends to fix.Related issues
Fixes #26309
Manual testing steps
We don't have clear reproduction steps for the bug itself. To artificially reproduce the scenario by changing extension state, this should work:
dist/chrome
directory and proceed through onboardingScreenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist