Changeset 202507 in webkit
- Timestamp:
- Jun 27, 2016 12:17:24 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r202505 r202507 1 2016-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 1 16 2016-06-27 Antoine Quint <graouts@apple.com> 2 17 -
trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm
r202410 r202507 227 227 [propertyDictionary setObject:@{@"_kCFURLConnectionPropertyTimingDataOptions": @(_TimingDataOptionsEnableW3CNavigationTiming)} forKey:@"kCFURLConnectionURLConnectionProperties"]; 228 228 #endif 229 230 #if TARGET_OS_IPHONE || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) 229 231 230 // This is used to signal that to CFNetwork that this connection should be considered 232 231 // 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 235 234 d->m_connection = adoptNS([[NSURLConnection alloc] _initWithRequest:nsRequest delegate:delegate usesCache:usesCache maxContentLength:0 startImmediately:NO connectionProperties:propertyDictionary]); 236 235 } -
trunk/Source/WebCore/platform/spi/cf/CFNetworkSPI.h
r202356 r202507 202 202 203 203 #if TARGET_OS_IPHONE || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) 204 EXTERN_C const CFStringRef _kCFURLConnectionPropertyATSContext;205 204 EXTERN_C CFDataRef _CFNetworkCopyATSContext(void); 206 205 EXTERN_C Boolean _CFNetworkSetATSContext(CFDataRef);
Note: See TracChangeset
for help on using the changeset viewer.