Uh oh!
There was an error while loading. Please reload this page.
Apply User-Agent header correctly to Android WebView - #5822
Conversation
facebook-github-bot
commented
Feb 8, 2016
By analyzing the blame information on this pull request, we identified @mtostenson, @mkonicek and @nicklockwood to be potential reviewers. |
facebook-github-bot
commented
Feb 8, 2016
@mtostenson updated the pull request. |
facebook-github-bot
commented
Feb 9, 2016
@mtostenson updated the pull request. |
There was a problem hiding this comment.
Can view.getSettings() return null, causing a NPE?
There was a problem hiding this comment.
I just discovered that useragent is already it's own prop, I think I'll handle this case where the user agent is provided in the headers in the wrapper, and just pass it along to the user agent prop.
facebook-github-bot
commented
Feb 12, 2016
@mtostenson updated the pull request. |
mkonicek
commented
Feb 21, 2016
@mtostenson Do you still want to make changes based on the comments above or is this good to go? |
ghost
commented
Apr 1, 2016
@mkonicek would you mind taking a look at this pull request? It's been a while since the last commit was reviewed. |
mtostenson
commented
Apr 1, 2016
@mkonicek I'm starting to think this change isn't necessary. |
janicduplessis
commented
Apr 5, 2016
I think the user agent header should either work or warn to use the user agent prop. It will avoid any confusion around it. |
mkonicek
commented
Apr 7, 2016
It is a indeed quite confusing the user agent header is set using a prop. Thanks for the ping, I think this PR will reduce the confusion actually. Let's merge it. @facebook-github-bot shipit |
facebook-github-bot
commented
Apr 7, 2016
Thanks for importing. If you are an FB employee go to Phabricator to review. |
mkonicek
commented
Apr 7, 2016
@mtostenson The patch doesn't apply anymore. Could you rebase please? |
mkonicek
commented
May 25, 2016
Can you please also add a Test plan showing how you verified the code fixes the issue? See https://github.com/facebook/react-native/blob/master/PULL_REQUEST_TEMPLATE.md |
mtostenson
commented
Jun 21, 2016
@mkonicek I just rebased and tested. Unfortunately, that link appears to be dead. Were you pointing me to this perhaps? https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md |
@mtostenson You commented in the past:
Do you still want to do that? I think you mean this? Someone said the It is documented for Android: http://facebook.github.io/react-native/docs/webview.html#useragent So I think we can close this PR. Sorry about the broken link, the pull request template has been moved, see this for an explanation of how to write a Test Plan: https://github.com/facebook/react-native/blob/master/.github/PULL_REQUEST_TEMPLATE.md |
| import com.facebook.react.bridge.ReadableMap; | ||
| import com.facebook.react.bridge.ReadableMapKeySetIterator; | ||
| import com.facebook.react.bridge.WritableMap; | ||
| import com.facebook.react.bridge.*; |
mkonicek
commented
Oct 26, 2016
Sorry this took so long, I was on a different team and Github notifications fell through the cracks :( |
I'll make a change internally that still sets the user agent based on the header too, addressing the nits on this PR. |
mkonicek
commented
Oct 26, 2016
Followup PR: #10563 |
Solves issue #5821