-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix: .registerBasicAuth() not working in Edge browser #3848 #3857
Conversation
Resolves #3848 |
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.
I tested your changes against my bug and can confirm that it resolves the issue.
Status
|
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.
The changes look good to me. Could you kindly include tests for the same? For reference, you may refer to the file test/src/index/transport/testEdgeOptions.js
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.
While the changes in this PR are correct, I feel that instead of calling this.__isBrowserName()
twice, we should consider making the alternateName
parameter of __isBrowserName()
function accept an array as well, so that we only need to do:
isEdge() {
return this.__isBrowserName(Browser.EDGE, ['edge', 'msedge']);
}
The above can be achieved by the following small change here:
if (alternateName) {
alternateName = Array.isArray(alternateName) ? alternateName : [alternateName];
return [browser, ...alternateName].some(name => browserNames.includes(name));
}
Done @garg3133 and @vaibhavsingh97 |
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.
Superb @DenysLins! LGTM!
Thanks a lot for your contribution.
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.
Thanks @DenysLins for fixing this issue 🎉
Thanks in advance for your contribution. Please follow the below steps in submitting a pull request, as it will help us with reviewing it quicker.
features/my-new-feature
orissue/123-my-bugfix
);