Changeset 202507 in webkit


Ignore:
Timestamp:
Jun 27, 2016 12:17:24 PM (8 years ago)
Author:
oliver@apple.com
Message:

Update ATS WebContent exception for more robust framework information
https://bugs.webkit.org/show_bug.cgi?id=159151

Reviewed by Alex Christensen.

We found some unexpected poor interaction with AVFoundation in the existing
CFNetwork SPI. This new SPI is more solid and let's us provide more useful
information while also being more future proof against new frameworks and
ATS modes.

  • platform/network/mac/ResourceHandleMac.mm:

(WebCore::ResourceHandle::createNSURLConnection):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202505 r202507  
     12016-06-27  Oliver Hunt  <oliver@apple.com>
     2
     3        Update ATS WebContent exception for more robust framework information
     4        https://bugs.webkit.org/show_bug.cgi?id=159151
     5
     6        Reviewed by Alex Christensen.
     7
     8        We found some unexpected poor interaction with AVFoundation in the existing
     9        CFNetwork SPI. This new SPI is more solid and let's us provide more useful
     10        information while also being more future proof against new frameworks and
     11        ATS modes.
     12
     13        * platform/network/mac/ResourceHandleMac.mm:
     14        (WebCore::ResourceHandle::createNSURLConnection):
     15
    1162016-06-27  Antoine Quint  <graouts@apple.com>
    217
  • trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm

    r202410 r202507  
    227227    [propertyDictionary setObject:@{@"_kCFURLConnectionPropertyTimingDataOptions": @(_TimingDataOptionsEnableW3CNavigationTiming)} forKey:@"kCFURLConnectionURLConnectionProperties"];
    228228#endif
    229    
    230 #if TARGET_OS_IPHONE || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
     229
    231230    // This is used to signal that to CFNetwork that this connection should be considered
    232231    // web content for purposes of App Transport Security.
    233     [propertyDictionary setObject:@{@"NSAllowsArbitraryLoadsInWebContent": @""} forKey:(NSString *)_kCFURLConnectionPropertyATSContext];
    234 #endif
     232    [propertyDictionary setObject:@{@"NSAllowsArbitraryLoadsInWebContent": @YES} forKey:@"_kCFURLConnectionPropertyATSFrameworkOverrides"];
     233
    235234    d->m_connection = adoptNS([[NSURLConnection alloc] _initWithRequest:nsRequest delegate:delegate usesCache:usesCache maxContentLength:0 startImmediately:NO connectionProperties:propertyDictionary]);
    236235}
  • trunk/Source/WebCore/platform/spi/cf/CFNetworkSPI.h

    r202356 r202507  
    202202
    203203#if TARGET_OS_IPHONE || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
    204 EXTERN_C const CFStringRef _kCFURLConnectionPropertyATSContext;
    205204EXTERN_C CFDataRef _CFNetworkCopyATSContext(void);
    206205EXTERN_C Boolean _CFNetworkSetATSContext(CFDataRef);
Note: See TracChangeset for help on using the changeset viewer.