-
Notifications
You must be signed in to change notification settings - Fork 873
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
Binance version 2 trading widget #5160
Conversation
0420ce3
to
9e48959
Compare
b994eda
to
89d30a1
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.
Basically LGTM, had a few comments nothing really major.
909bd22
to
0f28948
Compare
c9dd709
to
191d1a0
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.
LGTM, a couple of minor nits nothing big.
std::string query; | ||
|
||
if (url.has_query()) { | ||
query = base::StrCat({ |
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.
Just FYI, net::AppendQueryParameter
is good for this kind of thing.
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.
ya AppendQueryParameter
it was used a lot of times in this PR but this file was copied from the rewards uphold protocol handler.
c5ffb36
to
ec475e9
Compare
ec475e9
to
1d7fea7
Compare
PR previously green, latest failure unrelated cc: @bbondy |
Binance version 2 trading widget
Verification passed on
Deposit
Conversion
Summary View
Menu settings
Logged the following follow up issues
Verification passed on
Deposit
Conversion
Summary View
Menu settings
Verification passed on
Deposit
Conversion
Summary View
Menu settings
|
|
||
connectBinance = () => { | ||
const { binanceClientUrl } = this.props | ||
window.open(binanceClientUrl, '_self') |
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.
@@ -302,6 +351,73 @@ class NewTabPage extends React.Component<Props, State> { | |||
window.open('https://brave.com/binance/', '_blank') |
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.
set noopener
(technically this isn't part of this PR but i was never tagged for review on the original one)
|
||
case types.ON_BINANCE_CLIENT_URL: | ||
state = { ...state } | ||
state.binanceState.binanceClientUrl = payload.clientUrl |
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.
maybe add some validation that this URL is HTTPS and connects to an expected hostname?
Binance version 2 trading widget
Fixes: brave/brave-browser#9118
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Defined in issue
Screenshots:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.