Skip to content

Conversation

@bradleyboy
Copy link
Contributor

This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: #5630

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @satya164 and @aprock to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Feb 22, 2016
@vmakhaev
Copy link

LGTM. Any chances to merge this soon?

@satya164
Copy link
Contributor

@bradleyboy Can you provide a test plan?

@bradleyboy
Copy link
Contributor Author

@satya164 I've been working on a IRC client that authenticates the user via a WebView, then opens a WebSocket for the rest of the communication thereafter. This worked fine on iOS (once #5630 landed), but did not work on Android as the cookies aren't passed currently. With this patch applied, I've confirmed that the behavior is consistent between both platforms.

@satya164
Copy link
Contributor

@bradleyboy Would be awesome to have an example in UIExplorer that we could test.

@facebook-github-bot
Copy link
Contributor

@bradleyboy updated the pull request.

2 similar comments
@facebook-github-bot
Copy link
Contributor

@bradleyboy updated the pull request.

@facebook-github-bot
Copy link
Contributor

@bradleyboy updated the pull request.

@ghost
Copy link

ghost commented Apr 6, 2016

@satya164 would you mind taking a look at this pull request? It's been a while since the last commit was reviewed.

@vmakhaev
Copy link

Would be happy to see it merged finally. This blocks using cookies for auth.

@dentrado
Copy link

Any news regarding this? I saw that a similar PR is open for iOS, maybe some examples and/or tests can be shared: #7167

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 12, 2016
@mkonicek
Copy link
Contributor

mkonicek commented Sep 9, 2016

Let's merge this since we do the same on iOS:

- (instancetype)initWithURL:(NSURL *)URL protocols:(NSArray<NSString *> *)protocols;

It would be ideal to have an example in the UI Explorer but the test plan @bradleyboy provided looks good.

@facebook-github-bot shipit

@ghost ghost added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. GH Review: accepted Import Started This pull request has been imported. This does not imply the PR has been approved. and removed GH Review: review-needed labels Sep 9, 2016
@mkonicek
Copy link
Contributor

mkonicek commented Sep 9, 2016

@bradleyboy Let's see if the patch still applies on top of master.

@mkonicek mkonicek self-assigned this Sep 9, 2016
@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review internal test results.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 9, 2016
@ghost
Copy link

ghost commented Sep 9, 2016

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@ghost ghost added Import Failed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Sep 9, 2016
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: facebook#5630
@ghost
Copy link

ghost commented Sep 10, 2016

@bradleyboy updated the pull request - view changes - changes since last import

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 10, 2016
@bradleyboy
Copy link
Contributor Author

@mkonicek Just rebased and force pushed this, so it should be clean now. CI looks 👍

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 10, 2016
@ghost ghost closed this in 04392f2 Sep 19, 2016
@mkonicek
Copy link
Contributor

Thanks for the patience @bradleyboy :)

ghost pushed a commit that referenced this pull request Sep 22, 2016
Summary:
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: #5630
Closes #6067

Differential Revision: D3841122

Pulled By: wutalman

fbshipit-source-id: 6dae03bdf1c4599f12c0b191fcc56a61952fb59e
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants