Changeset 251862 in webkit
- Timestamp:
- Oct 31, 2019, 10:54:01 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/WTF/ChangeLog ¶
r251852 r251862 1 2019-10-31 Alex Christensen <achristensen@webkit.org> 2 3 Remove unneeded HAVE_TIMINGDATAOPTIONS 4 https://bugs.webkit.org/show_bug.cgi?id=202990 5 6 Reviewed by Brady Eidson. 7 8 * wtf/Platform.h: 9 1 10 2019-10-31 Yusuke Suzuki <ysuzuki@apple.com> 2 11 -
TabularUnified trunk/Source/WTF/wtf/Platform.h ¶
r251518 r251862 1277 1277 1278 1278 #if PLATFORM(COCOA) 1279 #define HAVE_TIMINGDATAOPTIONS 11280 #endif1281 1282 #if PLATFORM(COCOA)1283 1279 #define USE_AUDIO_SESSION 1 1284 1280 #endif -
TabularUnified trunk/Source/WebCore/ChangeLog ¶
r251861 r251862 1 2019-10-31 Alex Christensen <achristensen@webkit.org> 2 3 Remove unneeded HAVE_TIMINGDATAOPTIONS 4 https://bugs.webkit.org/show_bug.cgi?id=202990 5 6 Reviewed by Brady Eidson. 7 8 This macro allowed us to adopt CFNetwork SPI, but now that the SPI is available everywhere we support, we don't need it. 9 10 * platform/network/NetworkLoadMetrics.h: 11 * platform/network/cocoa/NetworkLoadMetrics.mm: 12 (WebCore::copyTimingData): 13 (WebCore::setCollectsTimingData): Deleted. 14 * platform/network/mac/ResourceHandleMac.mm: 15 (WebCore::ResourceHandle::createNSURLConnection): 16 1 17 2019-10-31 Alex Christensen <achristensen@webkit.org> 2 18 -
TabularUnified trunk/Source/WebCore/platform/network/NetworkLoadMetrics.h ¶
r251021 r251862 188 188 #endif 189 189 190 #if PLATFORM(COCOA) && !HAVE(TIMINGDATAOPTIONS)191 WEBCORE_EXPORT void setCollectsTimingData();192 #endif193 194 190 template<class Encoder> 195 191 void NetworkLoadMetrics::encode(Encoder& encoder) const -
TabularUnified trunk/Source/WebCore/platform/network/cocoa/NetworkLoadMetrics.mm ¶
r220506 r251862 65 65 // NOTE: responseEnd is not populated in this code path. 66 66 } 67 68 #if !HAVE(TIMINGDATAOPTIONS)69 void setCollectsTimingData()70 {71 static dispatch_once_t onceToken;72 dispatch_once(&onceToken, ^{73 [NSURLConnection _setCollectsTimingData:YES];74 [NSURLConnection _collectTimingDataWithOptions:TimingDataCollectionNStatsOff | TimingDataCollectionConnectionDataOff];75 });76 }77 #endif78 67 79 68 } -
TabularUnified trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm ¶
r248190 r251862 142 142 #endif 143 143 { 144 #if !HAVE(TIMINGDATAOPTIONS)145 setCollectsTimingData();146 #endif147 148 144 // Credentials for ftp can only be passed in URL, the connection:didReceiveAuthenticationChallenge: delegate call won't be made. 149 145 if ((!d->m_user.isEmpty() || !d->m_pass.isEmpty()) && !firstRequest().url().protocolIsInHTTPFamily()) { … … 218 214 const bool usesCache = true; 219 215 #endif 220 #if HAVE(TIMINGDATAOPTIONS)221 216 [propertyDictionary setObject:@{@"_kCFURLConnectionPropertyTimingDataOptions": @(_TimingDataOptionsEnableW3CNavigationTiming)} forKey:@"kCFURLConnectionURLConnectionProperties"]; 222 #endif223 217 224 218 // This is used to signal that to CFNetwork that this connection should be considered -
TabularUnified trunk/Source/WebKit/ChangeLog ¶
r251861 r251862 1 2019-10-31 Alex Christensen <achristensen@webkit.org> 2 3 Remove unneeded HAVE_TIMINGDATAOPTIONS 4 https://bugs.webkit.org/show_bug.cgi?id=202990 5 6 Reviewed by Brady Eidson. 7 8 * NetworkProcess/cocoa/NetworkSessionCocoa.mm: 9 (WebKit::NetworkSessionCocoa::NetworkSessionCocoa): 10 1 11 2019-10-31 Alex Christensen <achristensen@webkit.org> 2 12 -
TabularUnified trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm ¶
r251676 r251862 1035 1035 #endif 1036 1036 1037 #if HAVE(TIMINGDATAOPTIONS)1038 1037 configuration._timingDataOptions = _TimingDataOptionsEnableW3CNavigationTiming; 1039 #else1040 setCollectsTimingData();1041 #endif1042 1038 1043 1039 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || PLATFORM(IOS_FAMILY)
Note:
See TracChangeset
for help on using the changeset viewer.