-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
android, unicode urls: Fix correct url not passed to custom tabs. #3317
Conversation
Before `getFullUrl` was adding `realm` even if unicode url string starts with `http`. This issue is completely wired. It can not be reproducible when remote debugger is on, on Android, but can otherwise. Replacing `startsWith` with `indexOf` doesn't make any logically change, but have internal implementation difference. Thus this got fixed.
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.
@gnprice @borisyankov this is also ready to review.
Sounds logical that this could be a fix. |
Hmm. Can you say more about exactly what you observed? The theory in this commit appears to be that There's a programming cliché that "it's never a compiler bug": Compilers do have bugs! And so do JS standard-library implementations, I'm sure. But these are systems a lot of people have banged on and a lot of people have put good work into making solid -- and so when you're tempted to say it's a compiler bug, or a JS stdlib bug, it's generally much more likely to be your bug, or something you don't understand yet. And on the rare occasion you do find a JS stdlib bug... you'll want to have it well documented! So the path to resolving the situation well is basically the same either way. |
The most likely place this bug can be is in the polyfill: |
... or more likely a JSC issue! Very interesting thread here: Looks like JSC will be upgraded in RN 0.59 And that would be a very likely fix for our issue. |
Let's close this. As I am not able to reproduce the issue. And there is no report for any such or similar issue from users. I am actively testing this and re-open it, if this is still a issue. Actually the issue was only on Android, |
Before
getFullUrl
was addingrealm
even if unicode url stringstarts with
http
. This issue is completely wired. It can not bereproducible when remote debugger is on, on Android, but can
otherwise.
Replacing
startsWith
withindexOf
doesn't make any logicallychange, but have internal implementation difference. Thus this got
fixed.