RESOLVED FIXED 135651
[iOS] QuickLook returns an invalid MIME type for some documents
https://bugs.webkit.org/show_bug.cgi?id=135651
Summary [iOS] QuickLook returns an invalid MIME type for some documents
Andy Estes
Reported 2014-08-06 08:59:47 PDT
[iOS] QuickLook returns an invalid MIME type for some documents
Attachments
Patch (4.72 KB, patch)
2014-08-06 09:10 PDT, Andy Estes
no flags
Patch (1.73 KB, patch)
2014-08-06 10:44 PDT, Andy Estes
ddkilzer: review+
Andy Estes
Comment 1 2014-08-06 09:00:55 PDT
Andy Estes
Comment 2 2014-08-06 09:10:25 PDT
David Kilzer (:ddkilzer)
Comment 3 2014-08-06 09:46:13 PDT
Comment on attachment 236106 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=236106&action=review r=me > Source/WebCore/platform/network/ios/QuickLook.mm:351 > + NSURLResponse *previewResponse = _quickLookHandle->nsResponse(); Should we use a RetainPtr<> here, or are we certain this object was retained and autoreleased before being returned?
Andy Estes
Comment 4 2014-08-06 10:22:03 PDT
(In reply to comment #3) > (From update of attachment 236106 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=236106&action=review > > r=me Thanks! > > > Source/WebCore/platform/network/ios/QuickLook.mm:351 > > + NSURLResponse *previewResponse = _quickLookHandle->nsResponse(); > > Should we use a RetainPtr<> here, or are we certain this object was retained and autoreleased before being returned? QuickLookHandle is already storing the NSURLResponse returned by nsResponse() in a RetainPtr<>.
Andy Estes
Comment 5 2014-08-06 10:23:26 PDT
Andy Estes
Comment 6 2014-08-06 10:44:46 PDT
Reopening to attach new patch.
Andy Estes
Comment 7 2014-08-06 10:44:47 PDT
David Kilzer (:ddkilzer)
Comment 8 2014-08-06 10:45:52 PDT
Comment on attachment 236111 [details] Patch r=me
Andy Estes
Comment 9 2014-08-06 11:18:56 PDT
Note You need to log in before you can comment on or make changes to this bug.