-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: Ensure network request to ledger bridge is not made during onboarding #24890
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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #24890 +/- ##
===========================================
- Coverage 65.76% 65.72% -0.03%
===========================================
Files 1366 1366
Lines 54275 54282 +7
Branches 14105 14109 +4
===========================================
- Hits 35690 35676 -14
- Misses 18585 18606 +21 ☔ View full report in Codecov by Sentry. |
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.
With this I was able to add a Ledger after onboarding. WFM!
Builds ready [fd79f50]
Page Load Metrics (945 ± 576 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
I am working on some tests for this. The e2e ones are tricky because the network requests happen in an iframe within the offscreen document. I put my work on the tests on pause, but will prioritize as soon as the MV3 RC is created (so tomorrow some time) |
Missing release label release-11.16.6 on PR. Adding release label release-11.16.6 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.16.6. |
Description
Currently during onboarding, a network request is made to our github.io ledger bridge page. We want to prevent this until later.
The PR ensures that the requests made as a result of establishing a connection with ledger when submitting a password or restoring a vault only happen if the user is already onboarded. Then, when the user goes to the hardware connection page, the communication with the ledger bridge will begin.
Because setting the ledger transport type no longer happens during onboarding, we now make sure it happens during hardware wallet connection
Manual testing steps
Pre-merge author checklist
Pre-merge reviewer checklist