Bug 137551

Summary: [iOS] Crash in CFURLDownloadClient.didFail if the download has a null resumeData
Product: WebKit Reporter: Andy Estes <aestes>
Component: Page LoadingAssignee: Andy Estes <aestes>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, ddkilzer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ddkilzer: review+

Description Andy Estes 2014-10-09 00:16:08 PDT
[iOS] Crash in CFURLDownloadClient.didFail if the download has a null resumeData
Comment 1 Andy Estes 2014-10-09 00:19:18 PDT
Created attachment 239522 [details]
Patch
Comment 2 Andy Estes 2014-10-09 00:19:49 PDT
rdar://problem/17316756
Comment 3 David Kilzer (:ddkilzer) 2014-10-09 02:43:13 PDT
Comment on attachment 239522 [details]
Patch

r=me
Comment 4 Alexey Proskuryakov 2014-10-09 10:56:02 PDT
Do we have steps to reproduce? Does this happen with all servers that don't support resuming?
Comment 5 Andy Estes 2014-10-09 11:08:21 PDT
(In reply to comment #4)
> Do we have steps to reproduce?

No, this is a speculative fix based on looking at crash reports.

> Does this happen with all servers that don't support resuming?

I don't know how to answer that question. I know that CFURLDownloadCopyResumeData() can return null and that we should handle it (this patch aligns our behavior with that of the Mac; e.g. passing a 0-length DataReference to DownloadProxy::didFail).
Comment 6 Andy Estes 2014-10-09 11:16:25 PDT
Committed r174512: <http://trac.webkit.org/changeset/174512>