curl supports various protocols (like: HTTP,...,POP3,IMAP...) and by default all of the are enabled for a single curl handle. Furthermore all of the protocols are allowed during location follow. This could pose a security risk for example: a malicious server responds with a crafted Location header pointing to an imap/../(etc) url and the curl backend will follow it and will give the result for the WebCore. The curl API allows protocol restriction, so this feature can be easily implemented. As far as I know other backend only support HTTP, HTTPS, FTP, FTPS and FILE protocols.
Created attachment 203855 [details] proposed patch
Comment on attachment 203855 [details] proposed patch This looks like a very smart change. r=me.
Comment on attachment 203855 [details] proposed patch Clearing flags on attachment: 203855 Committed r151238: <http://trac.webkit.org/changeset/151238>
All reviewed patches have been landed. Closing bug.