[Webkit-unassigned] [Bug 139453] REGRESSION (r173272): When open PDF from Safari in iBooks, title is replaced to “QuickLookPDF-s72DbgAU-1”
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 9 14:08:54 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=139453
--- Comment #5 from Darin Adler <darin at apple.com> ---
Comment on attachment 242947
--> https://bugs.webkit.org/attachment.cgi?id=242947
patch
View in context: https://bugs.webkit.org/attachment.cgi?id=242947&action=review
> Source/WebCore/platform/network/cf/ResourceResponseCFNet.cpp:133
> - RetainPtr<CFStringRef> suggestedFilename = adoptCF(CFURLResponseCopySuggestedFilename(m_cfResponse.get()));
> + RetainPtr<CFStringRef> suggestedFilename = adoptCF(CFURLResponseCopySuggestedFilename(cfURLResponse()));
> return suggestedFilename.get();
I think that code like this reads better without a local RetainPtr variable:
return adoptCF(CFURLResponseCopySuggestedFilename(cfURLResponse())).get();
In fact, I would write this:
CFURLResponseRef underlyingResponse = cfURLResponse();
if (!underlyingResponse)
return String();
return adoptCF(CFURLResponseCopySuggestedFilename(underlyingResponse)).get();
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141209/ea786e14/attachment-0002.html>
More information about the webkit-unassigned
mailing list