[Webkit-unassigned] [Bug 199189] WebSockets: add support for sending blob messages when using web sockets platform APIs
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 25 09:45:47 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=199189
--- Comment #2 from youenn fablet <youennf at gmail.com> ---
Comment on attachment 372834
--> https://bugs.webkit.org/attachment.cgi?id=372834
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=372834&action=review
> Source/WebKit/WebProcess/Network/WebSocketChannel.cpp:180
> + m_pendingBlobMessages.append(std::make_unique<BlobLoader>(m_document.get(), blob, [this, protectedThis = makeRef(*this)] {
Whenever we have a pending blob message, we should enqueue all other messages until sending the blob.
Otherwise send(blob);send(arrayBuffer); will end up sending the arrayBuffer first and the blob second.
Since blobs are stored in NetworkProcess, it might be more efficient to do this enqueuing/reading in Network Process as well.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190625/4b657f13/attachment.html>
More information about the webkit-unassigned
mailing list