[Bug]: Onboarding - Reloading the page on the Confirm Secret Recovery Phrase leaves it as a 1 empty word and cannot do any action
Describe the bug
If I refresh the browser when I'm on the Confirm Secret Recovery Phrase I get stuck in this page and cannot perform any action. I see 1 empty input. The only option is to click the Reload button from the Extension page.
Expected behavior
No response
Screenshots/Recordings
https://github.com/MetaMask/metamask-extension/assets/54408225/0d6c90f9-b9ef-40d0-9df9-3a26c47a2d7f
Steps to reproduce
- Start the Onboarding flow
- Create Wallet
- Click Secure your wallet
- Reveal your secret recovery phrase
- Go to Confirm Secret Recovery phrase
- Refresh the page
- See just 1 empty input and cannot perform any action + several errors in the ui console
Error messages or log output
No response
Version
11.16.8 but seems an old issue
Build type
None
Browser
Chrome
Operating system
Linux
Hardware wallet
No response
Additional context
No response
Severity
No response
This may be a side effect of a previous security PR to clear password from memory. We should investigate how/if we can even restore the UI once there's a refresh, or if we should take another strategy
Plausable solution could be to make the user start onboarding over again since the generated SRP would've been cleared from memory