Sometimes downloads are failing for me. I have traced this down to be caused by missing cookies in the download request. I believe the reason for this is that when the download tries to read from the cookie file, it fails to open it, because it is already opened for writing by the ResourceHandleManager. This can be fixed by using the share handle in the ResourceHandleManager to get the cookies, instead for reading the cookie file. This will also be a performance improvement, as there is no need to read and parse the cookie file all over again for each download. The multithreading issues are already handled by the ResourceHandleManager.
Created attachment 215388 [details] Patch
Comment on attachment 215388 [details] Patch r=me
(In reply to comment #2) > (From update of attachment 215388 [details]) > r=me Thanks for reviewing!
Comment on attachment 215388 [details] Patch Clearing flags on attachment: 215388 Committed r158277: <http://trac.webkit.org/changeset/158277>
All reviewed patches have been landed. Closing bug.