Changeset 249019 in webkit
- Timestamp:
- Aug 22, 2019, 11:13:08 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 8 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/Platform.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/NetworkProcess/NetworkSessionCreationParameters.cpp (modified) (4 diffs)
-
WebKit/NetworkProcess/NetworkSessionCreationParameters.h (modified) (1 diff)
-
WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm (modified) (1 diff)
-
WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (modified) (1 diff)
-
WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r249015 r249019 1 2019-08-22 Alex Christensen <achristensen@webkit.org> 2 3 Disable legacy TLS versions and add a temporary default to re-enable it 4 https://bugs.webkit.org/show_bug.cgi?id=200945 5 6 Reviewed by Brady Eidson. 7 8 * wtf/Platform.h: 9 1 10 2019-08-22 Darin Adler <darin@apple.com> 2 11 -
trunk/Source/WTF/wtf/Platform.h
r248950 r249019 1610 1610 #endif 1611 1611 1612 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000 || PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) 1613 #define HAVE_TLS_PROTOCOL_VERSION_T 1 1614 #endif 1615 1612 1616 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000 1613 1617 #define USE_UICONTEXTMENU 1 -
trunk/Source/WebKit/ChangeLog
r249013 r249019 1 2019-08-22 Alex Christensen <achristensen@webkit.org> 2 3 Disable legacy TLS versions and add a temporary default to re-enable it 4 https://bugs.webkit.org/show_bug.cgi?id=200945 5 6 Reviewed by Brady Eidson. 7 8 * NetworkProcess/NetworkSessionCreationParameters.cpp: 9 (WebKit::NetworkSessionCreationParameters::privateSessionParameters): 10 (WebKit::NetworkSessionCreationParameters::encode const): 11 (WebKit::NetworkSessionCreationParameters::decode): 12 * NetworkProcess/NetworkSessionCreationParameters.h: 13 * NetworkProcess/cocoa/NetworkSessionCocoa.mm: 14 (WebKit::NetworkSessionCocoa::NetworkSessionCocoa): 15 * UIProcess/Cocoa/WebProcessPoolCocoa.mm: 16 (WebKit::WebProcessPool::platformInitializeNetworkProcess): 17 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 18 (WebKit::WebsiteDataStore::parameters): 19 1 20 2019-08-17 Darin Adler <darin@apple.com> 2 21 -
trunk/Source/WebKit/NetworkProcess/NetworkSessionCreationParameters.cpp
r248734 r249019 41 41 NetworkSessionCreationParameters NetworkSessionCreationParameters::privateSessionParameters(const PAL::SessionID& sessionID) 42 42 { 43 return { sessionID, { }, AllowsCellularAccess::Yes 44 #if PLATFORM(COCOA) 45 , { }, { }, { }, AllowsTLSFallback::Yes, false, { }, { }, { } 43 return { 44 sessionID 45 , { } 46 , AllowsCellularAccess::Yes 47 #if PLATFORM(COCOA) 48 , { } 49 , { } 50 , { } 51 , AllowsTLSFallback::Yes 52 , false 53 , { } 54 , { } 55 , { } 56 , false 46 57 #endif 47 58 #if USE(SOUP) 48 , { }, SoupCookiePersistentStorageType::Text 49 #endif 50 #if USE(CURL) 51 , { }, { } 52 #endif 53 , { }, { }, false, false, { }, { }, { }, { }, { }, { }, { }, { } 59 , { } 60 , SoupCookiePersistentStorageType::Text 61 #endif 62 #if USE(CURL) 63 , { } 64 , { } 65 #endif 66 , { } 67 , { } 68 , false 69 , false 70 , { } 71 , { } 72 , { } 73 , { } 74 , { } 75 , { } 76 , { } 77 , { } 54 78 }; 55 79 } … … 69 93 encoder << httpProxy; 70 94 encoder << httpsProxy; 95 encoder << enableLegacyTLS; 71 96 #endif 72 97 #if USE(SOUP) … … 149 174 if (!httpsProxy) 150 175 return WTF::nullopt; 176 177 Optional<bool> enableLegacyTLS; 178 decoder >> enableLegacyTLS; 179 if (!enableLegacyTLS) 180 return WTF::nullopt; 151 181 #endif 152 182 … … 248 278 , WTFMove(*httpProxy) 249 279 , WTFMove(*httpsProxy) 280 , WTFMove(*enableLegacyTLS) 250 281 #endif 251 282 #if USE(SOUP) -
trunk/Source/WebKit/NetworkProcess/NetworkSessionCreationParameters.h
r248734 r249019 73 73 URL httpProxy; 74 74 URL httpsProxy; 75 bool enableLegacyTLS { false }; 75 76 #endif 76 77 #if USE(SOUP) -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r248950 r249019 941 941 NSURLSessionConfiguration *configuration = configurationForSessionID(m_sessionID); 942 942 943 if (!parameters.enableLegacyTLS) { 944 #if HAVE(TLS_PROTOCOL_VERSION_T) 945 configuration.TLSMinimumSupportedProtocolVersion = tls_protocol_version_TLSv12; 946 #else 947 configuration.TLSMinimumSupportedProtocol = kTLSProtocol12; 948 #endif 949 } 950 943 951 #if HAVE(APP_SSO) 944 952 configuration._preventsAppSSO = true; -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r248846 r249019 282 282 } 283 283 284 parameters.defaultDataStoreParameters.networkSessionParameters.enableLegacyTLS = [defaults boolForKey:@"WebKitEnableLegacyTLS"]; 285 284 286 parameters.networkATSContext = adoptCF(_CFNetworkCopyATSContext()); 285 287 -
trunk/Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
r248734 r249019 70 70 bool enableResourceLoadStatisticsNSURLSessionSwitching = WebCore::RuntimeEnabledFeatures::sharedFeatures().isITPSessionSwitchingEnabled(); 71 71 WebCore::RegistrableDomain resourceLoadStatisticsManualPrevalentResource { }; 72 bool enableLegacyTLS = [defaults boolForKey:@"WebKitEnableLegacyTLS"]; 72 73 #if ENABLE(RESOURCE_LOAD_STATISTICS) 73 74 enableResourceLoadStatisticsDebugMode = [defaults boolForKey:@"ITPDebugMode"]; … … 129 130 WTFMove(httpProxy), 130 131 WTFMove(httpsProxy), 132 enableLegacyTLS, 131 133 WTFMove(resourceLoadStatisticsDirectory), 132 134 WTFMove(resourceLoadStatisticsDirectoryHandle),
Note:
See TracChangeset
for help on using the changeset viewer.