WebKit/mac/ChangeLog

 12010-09-23 Alexey Proskuryakov <ap@apple.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 https://bugs.webkit.org/show_bug.cgi?id=46380
 6 REGRESSION: 'Failed to load resource' on opening resource with content-disposition "attachment"
 7
 8 I could never reproduce this in the form described by the reporter. I was getting a crash
 9 when following provided steps to reproduce, and after fixing the crash, I couldn't reproduce
 10 the stopped timer issue.
 11
 12 Downloading cannot be tested in DRT.
 13
 14 * Misc/WebNSFileManagerExtras.m: (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
 15 Don't copy null strings.
 16
1172010-09-23 Matthew Delaney <mdelaney@apple.com>
218
319 Reviewed by Simon Fraser.
68214

WebKit/mac/Misc/WebNSFileManagerExtras.m

@@- (void)_webkit_setMetadataURL:(NSString
126126
127127 MetaDataInfo *info = malloc(sizeof(MetaDataInfo));
128128
129  info->URLString = CFStringCreateCopy(0, (CFStringRef)URLString);
130  info->referrer = CFStringCreateCopy(0, (CFStringRef)referrer);
131  info->path = CFStringCreateCopy(0, (CFStringRef)path);
 129 info->URLString = URLString ? CFStringCreateCopy(0, (CFStringRef)URLString) : 0;
 130 info->referrer = referrer ? CFStringCreateCopy(0, (CFStringRef)referrer) : 0;
 131 info->path = path ? CFStringCreateCopy(0, (CFStringRef)path) : 0;
132132
133133 pthread_create(&tid, &attr, setMetaData, info);
134134 pthread_attr_destroy(&attr);
68167