fix: Delete invalid SelectedNetworkController state#26428
Merged
Conversation
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
Collaborator
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
Contributor
|
LGTM ! The tests are very solid |
jiexi
reviewed
Aug 14, 2024
jiexi
reviewed
Aug 14, 2024
jiexi
approved these changes
Aug 14, 2024
Collaborator
Builds ready [26f7fa1]
Page Load Metrics (144 ± 159 ms)
Bundle size diffs
|
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
SelectedNetworkControllerstate is cleared if any invalidnetworkConfigurationIds are found in state. We are seeing reports of this happening in production in v12.0.1.The suspected cause is
NetworkControllerstate 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 theSelectedNetworkControllerstate 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/chromedirectory and proceed through onboardingScreenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist