In some cases, a ResourceRequest may attempt to update the cache partition when the associated NSURLRequest is nil. This will trigger an assertion. <rdar://problem/15375976>
Created attachment 219207 [details] Patch
Committed r160663: <http://trac.webkit.org/changeset/160663>
Comment on attachment 219207 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=219207&action=review > Source/WebCore/platform/network/mac/ResourceRequestMac.mm:114 > + m_cachePartition = cachePartition; Does m_cachePartition need to be reset to null when m_nsRequest is null?
(In reply to comment #3) > (From update of attachment 219207 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=219207&action=review > > > Source/WebCore/platform/network/mac/ResourceRequestMac.mm:114 > > + m_cachePartition = cachePartition; > > Does m_cachePartition need to be reset to null when m_nsRequest is null? Since it doesn't reset m_cachePartition to null when the partition it gets out of the request is null either, I don't think this is necessary, but that might itself be a bug.