RESOLVED FIXED 199943
[SOUP] WebSockets: add support for extensions when using web sockets libsoup API
https://bugs.webkit.org/show_bug.cgi?id=199943
Summary [SOUP] WebSockets: add support for extensions when using web sockets libsoup API
Carlos Garcia Campos
Reported 2019-07-19 07:42:17 PDT
This still requires new API in libsoup, see https://gitlab.gnome.org/GNOME/libsoup/merge_requests/76
Attachments
WIP (8.33 KB, patch)
2019-07-19 07:44 PDT, Carlos Garcia Campos
no flags
Patch (73.74 KB, patch)
2019-08-01 05:11 PDT, Carlos Garcia Campos
achristensen: review+
Carlos Garcia Campos
Comment 1 2019-07-19 07:44:03 PDT
Carlos Garcia Campos
Comment 2 2019-07-19 08:20:00 PDT
Youenn, do we have a "formal" way of importing blink tests? I want to use the permessage-deflate tests from blink. Importing them in imported/blink would not work for websocket tests, so it would be easier to just copy them to our websocket tests directory.
youenn fablet
Comment 3 2019-07-19 08:47:53 PDT
Ideally these would be WPT tests, is it something we could do? Otherwise, I guess we could use http/tests/websockets/imported/blink.
Carlos Garcia Campos
Comment 4 2019-07-19 08:53:55 PDT
(In reply to youenn fablet from comment #3) > Ideally these would be WPT tests, is it something we could do? I don't see permessage-deflate tests in wpt > Otherwise, I guess we could use http/tests/websockets/imported/blink. Good point, that will work.
Carlos Garcia Campos
Comment 5 2019-08-01 05:11:53 PDT
Created attachment 375306 [details] Patch Alex or Youenn, I need a review here, please, I'm currently preparing a new release including the new WebSockets code path that I have to make tomorrow.
Alex Christensen
Comment 6 2019-08-01 07:07:52 PDT
Comment on attachment 375306 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375306&action=review great > Source/WebKit/WebProcess/Network/WebSocketChannel.cpp:79 > + return m_extensions.isNull() ? emptyString(): m_extensions; space before colon
Alex Christensen
Comment 7 2019-08-01 07:14:04 PDT
Comment on attachment 375306 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=375306&action=review > Source/WebKit/NetworkProcess/cocoa/WebSocketTaskCocoa.mm:87 > + m_channel.didConnect(protocol, { }); Actually, could you move the "FIXME: support extensions." comment to here?
Carlos Garcia Campos
Comment 8 2019-08-01 07:21:33 PDT
Carlos Garcia Campos
Comment 9 2019-08-01 07:22:02 PDT
Thanks for the review, fixed both things.
Note You need to log in before you can comment on or make changes to this bug.