[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
Wed Jun 26 04:38:55 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=199189
--- Comment #3 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to youenn fablet from comment #2)
> Comment on attachment 372834 [details]
> 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.
Oops, indeed.
> Since blobs are stored in NetworkProcess, it might be more efficient to do
> this enqueuing/reading in Network Process as well.
hmm, that would be more complicated, I'm afraid, we need to register the blob, send a network request to the network process socket channel, start the network load, and reaply back to unregister the blob. The part of starting the network connection in the network process is what I think it's more complicated. Should we use NetworkREsourceLoder? or NetworkLoad directly? For now I'm going to leave it in the web process using FileReadLoader, I'm not sure it's worth the effort of optimizing that.
--
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/20190626/691cece8/attachment-0001.html>
More information about the webkit-unassigned
mailing list