- Convert lots of JS to typescript, although marked a lot of it as ts-nocheck as adding types would take a very very long time. To be done separately, hopefully with help!
- Upgrade many modules to polymer3
- Use chromium's build target for everything instead of duplicating a lot of build processes
- Do the same for everything that was served by chrome://brave-resources, now that it's easier to have the build system for chrome://resources take our additional files
TODO: Bring back manrope substitution for ru|el languages from brave_shared_resources_data_source.cc
The Solana Ledger JS libraries are now accessed by the chrome://wallet
and chrome://wallet-panel contexts via postMessage calls to an iframe
whose origin is chrome-untrusted://ledger-bridge.
If we detect that user needs to grant the Wallet permssion to access a
Ledger device, an 'Authorize' button is displayed *within* the untrusted
frame so that the permission dialog (which requires a user gesture to be
displayed) screen is shown.
When permission is granted, the chrome-untrusted://ledger-bridge sends a
postMessage to the parent (trusted) context instructing it to continue the flow.
Chromium change:
https://chromium.googlesource.com/chromium/src/+/4ad0ea2a806d6241a9fbbae0515727bde0879ad5
commit 4ad0ea2a806d6241a9fbbae0515727bde0879ad5
Author: dpapad <dpapad@chromium.org>
Date: Tue Apr 19 17:15:07 2022 +0000
Grit: Migrate update_resource_ids from getopt to argparse.ArgumentParser
This is in preparation of passing grit_defines to update_resource_ids,
which requires more complex command line parsing (recurring arguments),
and is easier to consume via ArgumentParser's action='append' feature.
Bug: 1316544