-
Notifications
You must be signed in to change notification settings - Fork 920
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
Register wallet data files component only if user has created wallets #20741
Conversation
4e433ef
to
104816e
Compare
6233e43
to
2860903
Compare
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.
iOS++.
Hit brave/brave-browser#34095 but also hit it on master
so seems unrelated to this PR.
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.
android part ++
Remove needs-security-review flag and those assignees due to base::Unretained(this) which is removed now. |
...nents/brave_wallet_ui/page/screens/onboarding/create-password/onboarding-create-password.tsx
Outdated
Show resolved
Hide resolved
components/brave_wallet_ui/page/screens/onboarding/onboarding.routes.tsx
Outdated
Show resolved
Hide resolved
...let_ui/page/screens/onboarding/restore-from-recovery-phrase/restore-from-recovery-phrase.tsx
Outdated
Show resolved
Hide resolved
...let_ui/page/screens/onboarding/restore-from-recovery-phrase/restore-from-recovery-phrase.tsx
Show resolved
Hide resolved
Your wallet is restoring... | ||
</message> | ||
<message name="IDS_YOUR_WALLET_IS_CREATING_PAGE_TITLE" desc="Text for a spinner page title during Brave Wallet creating. It is not displayed anywhere" translateable="false"> | ||
Your wallet is creating... |
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.
Suggestions: Your wallet is being created...
or Creating your wallet...
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.
Changed to Your wallet is being created...
, thanks.
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.
strings
++
This PR does following things: - For normal users without wallet: wallet data files won't be registered. - For first time wallet users, wallet data files component will be registered when Create/ResotreWallet and ImportFromExternalWallet APIs are called, the finish callback of these APIs won't be run until wallet data files component is ready and content is parsed into BlockchainRegistry. - For existing wallet users, the behavior is unchanged, wallet data files component will continue to be registered and parsed upon startup. - Remove json sanitization on JSON files from brave wallet data files component served via component updater which is considered trusted data.
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.
chromium_src
++
49f8b9b
to
6e16623
Compare
…Desktop - The timing of registration is controlled by core backend - Remove RegisterWalletDataFilesComponentOnDemand in Android - Remove wallet_data_files_installer_android_util Authored by @AlexeyBarabash: - Added Android onboaring page fragment - Removed unused staff around Android's percentage progress while download Wallet component
Resolves brave/brave-browser#33757
Resolves brave/brave-browser#30940
This PR does following things:
when Create/ResotreWallet and ImportFromExternalWallet APIs are called, the
finish callback of these APIs won't be run until wallet data files component
is ready and content is parsed into BlockchainRegistry.
component will continue to be registered and parsed upon startup.
files component served via component updater which is considered trusted data.
Note that if the installation of component or parsing failed, we won't retry and will unblock the APIs without error in this case.
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Screenshots:
Create New Wallet
Screen.Recording.27.mov
Import From Existing Wallet
Screen.Recording.28.mov
Restore From Seed Phrase
Screen.Recording.29.mov
Test Plan:
npm start -- --user_data_dir_name=PR20741
or run the executable with--user-data-dir=some_path
. (Should see a welcome page when started)Also, do the similar steps for testing
import from existing wallet
like above video shows.