-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: account connect origin #13394
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
base: main
Are you sure you want to change the base?
fix: account connect origin #13394
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. |
0ea1004
to
d3868d6
Compare
|
d3868d6
to
5d84838
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.
unit tests look good to me
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.
left some comments
@@ -194,7 +189,7 @@ const AccountConnect = (props: AccountConnectProps) => { | |||
dappHostname = title; | |||
} else if (!isChannelId && (dappUrl || channelIdOrHostname)) { | |||
title = prefixUrlWithProtocol(dappUrl || channelIdOrHostname); | |||
dappHostname = inappBrowserOrigin; | |||
dappHostname = channelIdOrHostname; |
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.
What was the before and after of this value? Wanted to understand how this piece broke the behavior before
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.
Unsure if I understand your question.
inappBrowserOrigin
comes from const inappBrowserOrigin: string = useSelector(getActiveTabUrl, isEqual);
which reacts to url changes on the active tab
channelIdOrHostname
is a navigation param set when navigator.navigate
is called. It wont react to url changes on the active tab
|
Description
The purpose of this task is to make a security improvement for dapps permissions request.
Related issues
Fixes: https://github.com/MetaMask/mobile-planning/issues/2096
Screenshots/Recordings
Before
android-spoofing-before.mov
After
permissions-summary-origin-spoofing-after-android.mov
Pre-merge author checklist
Pre-merge reviewer checklist