[Webkit-unassigned] [Bug 137299] POST is missing a body after registerSchemeForCustomProtocol

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 2 02:41:42 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137299





--- Comment #5 from Daniel <danielo at opera.com>  2014-10-02 02:41:40 PST ---
A comment in the serialization code is saying:
"We don't send HTTP body over IPC for better performance"
What was the performance problem?

Consider a use case of having a custom HTTP implementation using NSURLProtocol. Opera Coast and Google Chrome on iOS are using this approach. If the body is not sent to UIProcess, there's no way a correct request can be made from UIProcess.

If HTTPBodyStream is present one would need to organize proper streaming between processes, where the sending process reads the stream block by block, and sends it through IPC as in series of calls, while in the UIProcess it makes a proxy stream on that request that accumulates data.

I would say that allowing the HTTPBody to be serialized will fix most of the simple FORM POST requests, which might be good enough already. What are the use cases when HTTPBodyStream is not nil? Can it happen with XmlHttpRequest? Maybe some <input> for file uploads?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list