-
Notifications
You must be signed in to change notification settings - Fork 879
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
Solana permission context #12945
Solana permission context #12945
Conversation
30d2c58
to
56dea41
Compare
ad87e4a
to
d841e72
Compare
@@ -45,8 +46,8 @@ public void checkAccounts(Runnable runWhenDone) { | |||
|
|||
accountsPermissionsContexts.add(accountPermissionContext); | |||
|
|||
mBraveWalletService.hasEthereumPermission( | |||
mOrigin, account.address, accountPermissionContext); | |||
mBraveWalletService.hasPermission( |
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.
cc @SergeyZhukovsky for related android change
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.
java changes looks ok
b4cea76
to
4286ac7
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.
Android side ++
d48701e
to
7aac572
Compare
597c58d
to
e300b10
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++ after new changes
Many interfaces now require content setting type or permission request type
Also prevent BraveWalletProviderDelegateImpl from using raw pointer of KeyringService
and fix showing correct user reject request error instead of internal error
… option for Connect
function since the `CreatePanelHandler` is async active WebContents might change. And the panel is not shared accross tabs so it is safe to bind webcontent when panel is created
ethereum.enable() manually and wait
…rmission_prompt_android.*
ConnectedStatusInMultiFrames
specific logic back to EthereumProvider and SolanaProvider
e300b10
to
dcb1d88
Compare
Resolves brave/brave-browser#21765
security review: https://github.com/brave/security/issues/824
BraveWalletPermissionContext
for multi coin support__
so the request would be like (https://origin__JDqrv...)BraveWalletPermissionPromptImpl
supports both Ethereum and SolanaBraveWalletProdiverImpl
to handle permission requests from both Ethereum and SolanaonlyIfTrusted
), which means it can only connect when site has permission, otherwise it will automatically reject the request.connected
in addition to site permission (Trusted app in Phantom) which would be addressed in Solana connected status brave-browser#22184CreatePanelHandler
is async active WebContents might changeSolanaProviderTest
toSolanaProviderRendererTest
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: