Skip to content
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

WebSocket handshake has no referrer #632

Merged
merged 1 commit into from Nov 17, 2017
Merged

WebSocket handshake has no referrer #632

merged 1 commit into from Nov 17, 2017

Conversation

annevk
Copy link
Member

@annevk annevk commented Nov 15, 2017

Fixes #630.


Preview | Diff

@annevk annevk requested a review from tyoshino November 15, 2017 13:38
@annevk
Copy link
Member Author

annevk commented Nov 15, 2017

Do you happen to know if we have tests for this?

@tyoshino
Copy link
Member

Looks not, either in WPT or Chromium's layout tests.

@annevk
Copy link
Member Author

annevk commented Nov 15, 2017

I wanted to write a test, but I can't figure out where the server-side logic is implemented. E.g., where is the WebSocket /set-cookie logic from /websockets/cookies/002.html? @zcorpan?

@tyoshino
Copy link
Member

It's websockets/handlers/set-cookie_wsh.py. A handler file for pywebsocket. You can infer the file name by adding _wsh.py to the WS URL.

annevk added a commit to web-platform-tests/wpt that referenced this pull request Nov 16, 2017
@annevk
Copy link
Member Author

annevk commented Nov 16, 2017

Thanks, I created web-platform-tests/wpt#8280. Review appreciated.

@annevk annevk merged commit 60db35e into master Nov 17, 2017
@annevk annevk deleted the annevk/ws-no-referrer branch November 17, 2017 15:08
annevk added a commit to web-platform-tests/wpt that referenced this pull request Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants