Changeset 173360 in webkit


Ignore:
Timestamp:
Sep 6, 2014 10:58:46 AM (10 years ago)
Author:
Antti Koivisto
Message:

Serialize ResourceResponses using WebKit types
https://bugs.webkit.org/show_bug.cgi?id=136545

Fix the failing webarchive tests.

  • platform/network/mac/ResourceResponseMac.mm:

(WebCore::ResourceResponse::initNSURLResponse): Map empty text encoding name to nil NSString.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r173358 r173360  
     12014-09-06  Antti Koivisto  <antti@apple.com>
     2
     3        Serialize ResourceResponses using WebKit types
     4        https://bugs.webkit.org/show_bug.cgi?id=136545
     5
     6        Fix the failing webarchive tests.
     7
     8        * platform/network/mac/ResourceResponseMac.mm:
     9        (WebCore::ResourceResponse::initNSURLResponse): Map empty text encoding name to nil NSString.
     10
    1112014-09-06  peavo@outlook.com  <peavo@outlook.com>
    212
  • trunk/Source/WebCore/platform/network/mac/ResourceResponseMac.mm

    r173356 r173360  
    5656            expectedContentLength = static_cast<NSInteger>(m_expectedContentLength);
    5757
    58         m_nsResponse = adoptNS([[NSURLResponse alloc] initWithURL:m_url MIMEType:m_mimeType expectedContentLength:expectedContentLength textEncodingName:m_textEncodingName]);
     58        NSString* encodingNSString = nsStringNilIfEmpty(m_textEncodingName);
     59        m_nsResponse = adoptNS([[NSURLResponse alloc] initWithURL:m_url MIMEType:m_mimeType expectedContentLength:expectedContentLength textEncodingName:encodingNSString]);
    5960        return;
    6061    }
Note: See TracChangeset for help on using the changeset viewer.