Skip to content

Fix browser cookie tests to only run with HTTPS #39665

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

Merged
merged 2 commits into from
Jan 21, 2022
Merged

Fix browser cookie tests to only run with HTTPS #39665

merged 2 commits into from
Jan 21, 2022

Conversation

BrennanConroy
Copy link
Member

Firefox 96 was released a few days ago and our Mac machines just updated to the new version. This version sets SameSite to lax for cookies if they don't specify any, which breaks some browser tests in SignalR.

The main fix is in EchoConnectionHandler.cs, ConnectionTests.ts, and line 613 of HubConnectionTests.ts where we now gate the cookie test on using an HTTPS connection.

The rest of the changes are to fix some warnings about using done() with an async it test method which is deprecated.

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Jan 20, 2022
@BrennanConroy BrennanConroy enabled auto-merge (squash) January 21, 2022 01:00
@HaoK HaoK disabled auto-merge January 21, 2022 03:46
@HaoK
Copy link
Member

HaoK commented Jan 21, 2022

Force merging per teams discussion

@HaoK HaoK merged commit 4893e3f into main Jan 21, 2022
@HaoK HaoK deleted the brecon/browsertest branch January 21, 2022 03:46
@ghost ghost added this to the 7.0-preview1 milestone Jan 21, 2022
ShreyasJejurkar pushed a commit to ShreyasJejurkar/aspnetcore that referenced this pull request Jan 22, 2022
dougbu pushed a commit that referenced this pull request Feb 1, 2022
* Fix browser cookie tests to only run with HTTPS (#39665)

* fixup
wtgodbe pushed a commit to vseanreesermsft/aspnetcore that referenced this pull request Feb 1, 2022
dougbu pushed a commit to vseanreesermsft/aspnetcore that referenced this pull request Feb 2, 2022
wtgodbe added a commit that referenced this pull request Feb 2, 2022
* Fix browser cookie tests to only run with HTTPS (#39665)

* fixup

* fixup

* Skip tests with expired cert

* Fxiup

* Fixup

* Improve File access issues

* Remove BasicTestApp Change

Co-authored-by: Brennan <[email protected]>
Co-authored-by: Hao Kung <[email protected]>
wtgodbe added a commit that referenced this pull request Feb 2, 2022
)

* Fix browser cookie tests to only run with HTTPS (#39665)

* fixup

* Skip failing cert tests for now

* Fix spacing

* Resolve conflicts

Co-authored-by: Brennan <[email protected]>
Co-authored-by: Hao Kung <[email protected]>
Co-authored-by: Doug Bunting <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants