Changeset 177031 in webkit


Ignore:
Timestamp:
Dec 9, 2014 12:06:57 PM (9 years ago)
Author:
Antti Koivisto
Message:

REGRESSION (r173272): When open PDF from Safari in iBooks, title is replaced to “QuickLookPDF-s72DbgAU-1”
https://bugs.webkit.org/show_bug.cgi?id=139453
rdar://problem/19052192

Reviewed by Pratik Solanki.

Pulling the suggested filename from the platform response returned null string on USE(CFNETWORK) code path
if it was the first thing needed from it.

  • platform/network/cf/ResourceResponseCFNet.cpp:

(WebCore::ResourceResponse::platformSuggestedFilename): Use the lazy accessor.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r177025 r177031  
     12014-12-09  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION (r173272): When open PDF from Safari in iBooks, title is replaced to “QuickLookPDF-s72DbgAU-1”
     4        https://bugs.webkit.org/show_bug.cgi?id=139453
     5        rdar://problem/19052192
     6
     7        Reviewed by Pratik Solanki.
     8
     9        Pulling the suggested filename from the platform response returned null string on USE(CFNETWORK) code path
     10        if it was the first thing needed from it.
     11
     12        * platform/network/cf/ResourceResponseCFNet.cpp:
     13        (WebCore::ResourceResponse::platformSuggestedFilename): Use the lazy accessor.
     14
    1152014-12-09  Joanmarie Diggs  <jdiggs@igalia.com>
    216
  • trunk/Source/WebCore/platform/network/cf/ResourceResponseCFNet.cpp

    r174252 r177031  
    128128String ResourceResponse::platformSuggestedFilename() const
    129129{
    130     if (!m_cfResponse)
     130    if (!cfURLResponse())
    131131        return String();
    132 
    133     RetainPtr<CFStringRef> suggestedFilename = adoptCF(CFURLResponseCopySuggestedFilename(m_cfResponse.get()));
     132    RetainPtr<CFStringRef> suggestedFilename = adoptCF(CFURLResponseCopySuggestedFilename(cfURLResponse()));
    134133    return suggestedFilename.get();
    135134}
Note: See TracChangeset for help on using the changeset viewer.