[Webkit-unassigned] [Bug 138131] New: File uploads not working with a custom NSURLProtocol
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 28 06:41:25 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=138131
Bug ID: 138131
Summary: File uploads not working with a custom NSURLProtocol
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: iOS
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit API
Assignee: webkit-unassigned at lists.webkit.org
Reporter: danielo at opera.com
The file upload using input type="file" or FormData API is not working when the URL is loaded using a custom NSURLProtocol.
If a custom NSURLProtocol is handling an HTTP POST request, the request HTTPBodyStream is nil.
This only happens if [WKBrowsingContextController registerSchemeForCustomProtocol:] is called for that protocol. If this method is not called, then the POST request is simply bypassing the custom protocol.
This happens, because HTTP body stream (NSURLRequest.HTTPBodyStream) is not serialized in IPC messages when sending the request from the networking process to the UI process.
See http://trac.webkit.org/browser/trunk/Source/WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm#L93 :
[(NSMutableURLRequest *)requestToSerialize setHTTPBodyStream:nil];
This happens on iOS 8.1 [12B401].
It's also reproducible on the master branch ( 809db5f8edac632ec3332b43dc90795d96914440 ).
This bug is related to https://bugs.webkit.org/show_bug.cgi?id=137299
--
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/20141028/0e8a5f75/attachment-0002.html>
More information about the webkit-unassigned
mailing list