Changeset 252798 in webkit
- Timestamp:
- Nov 22, 2019 1:32:18 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r252796 r252798 1 2019-11-22 Alex Christensen <achristensen@webkit.org> 2 3 Revert r250421 4 https://bugs.webkit.org/show_bug.cgi?id=202290 5 6 This is needed for rdar://problem/56760896 7 I left the soup parts of the original change untouched, which leaves speculative validation on for soup ports. 8 9 * NetworkProcess/NetworkProcessCreationParameters.cpp: 10 (WebKit::NetworkProcessCreationParameters::encode const): 11 (WebKit::NetworkProcessCreationParameters::decode): 12 * NetworkProcess/NetworkProcessCreationParameters.h: 13 * NetworkProcess/cocoa/NetworkProcessCocoa.mm: 14 (WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa): 15 * UIProcess/API/APIProcessPoolConfiguration.cpp: 16 (API::ProcessPoolConfiguration::copy): 17 * UIProcess/API/APIProcessPoolConfiguration.h: 18 * UIProcess/API/C/WKContext.cpp: 19 (WKContextSetDiskCacheSpeculativeValidationEnabled): 20 * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: 21 (-[_WKProcessPoolConfiguration diskCacheSpeculativeValidationEnabled]): 22 (-[_WKProcessPoolConfiguration setDiskCacheSpeculativeValidationEnabled:]): 23 * UIProcess/WebProcessPool.cpp: 24 (WebKit::WebProcessPool::ensureNetworkProcess): 25 1 26 2019-11-22 Alex Christensen <achristensen@webkit.org> 2 27 -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp
r252796 r252798 42 42 encoder.encodeEnum(cacheModel); 43 43 encoder << canHandleHTTPSServerTrustEvaluation; 44 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION) 45 encoder << shouldEnableNetworkCacheSpeculativeRevalidation; 46 #endif 44 47 #if PLATFORM(MAC) 45 48 encoder << uiProcessCookieStorageIdentifier; … … 93 96 return false; 94 97 98 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION) 99 if (!decoder.decode(result.shouldEnableNetworkCacheSpeculativeRevalidation)) 100 return false; 101 #endif 102 95 103 #if PLATFORM(MAC) 96 104 if (!decoder.decode(result.uiProcessCookieStorageIdentifier)) -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h
r252796 r252798 58 58 Vector<uint8_t> uiProcessCookieStorageIdentifier; 59 59 #endif 60 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION) 61 bool shouldEnableNetworkCacheSpeculativeRevalidation { false }; 62 #endif 60 63 #if PLATFORM(IOS_FAMILY) 61 64 SandboxExtension::Handle cookieStorageDirectoryExtensionHandle; -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm
r252431 r252798 116 116 m_cacheOptions = { NetworkCache::CacheOption::RegisterNotify }; 117 117 118 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION) 119 if (parameters.shouldEnableNetworkCacheSpeculativeRevalidation) 120 m_cacheOptions.add(NetworkCache::CacheOption::SpeculativeRevalidation); 121 #endif 122 118 123 // Disable NSURLCache. 119 124 auto urlCache(adoptNS([[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil])); -
trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.cpp
r252364 r252798 45 45 auto copy = this->create(); 46 46 47 copy->m_diskCacheSpeculativeValidationEnabled = this->m_diskCacheSpeculativeValidationEnabled; 47 48 copy->m_injectedBundlePath = this->m_injectedBundlePath; 48 49 copy->m_customClassesForParameterCoder = this->m_customClassesForParameterCoder; -
trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.h
r252368 r252798 68 68 bool clientWouldBenefitFromAutomaticProcessPrewarming() const { return m_clientWouldBenefitFromAutomaticProcessPrewarming; } 69 69 void setClientWouldBenefitFromAutomaticProcessPrewarming(bool value) { m_clientWouldBenefitFromAutomaticProcessPrewarming = value; } 70 71 bool diskCacheSpeculativeValidationEnabled() const { return m_diskCacheSpeculativeValidationEnabled; } 72 void setDiskCacheSpeculativeValidationEnabled(bool enabled) { m_diskCacheSpeculativeValidationEnabled = enabled; } 70 73 71 74 void setUsesBackForwardCache(bool value) { m_usesBackForwardCache = value; } … … 149 152 150 153 private: 154 bool m_diskCacheSpeculativeValidationEnabled { false }; 151 155 WTF::String m_injectedBundlePath; 152 156 Vector<WTF::String> m_customClassesForParameterCoder; -
trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp
r252796 r252798 420 420 } 421 421 422 void WKContextSetDiskCacheSpeculativeValidationEnabled(WKContextRef, bool) 423 { 422 void WKContextSetDiskCacheSpeculativeValidationEnabled(WKContextRef contextRef, bool value) 423 { 424 WebKit::toImpl(contextRef)->configuration().setDiskCacheSpeculativeValidationEnabled(value); 424 425 } 425 426 -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm
r252368 r252798 110 110 - (BOOL)diskCacheSpeculativeValidationEnabled 111 111 { 112 return NO;112 return _processPoolConfiguration->diskCacheSpeculativeValidationEnabled(); 113 113 } 114 114 115 115 - (void)setDiskCacheSpeculativeValidationEnabled:(BOOL)enabled 116 116 { 117 _processPoolConfiguration->setDiskCacheSpeculativeValidationEnabled(enabled); 117 118 } 118 119 -
trunk/Source/WebKit/UIProcess/WebProcessPool.cpp
r252796 r252798 499 499 parameters.urlSchemesRegisteredForCustomProtocols.append(scheme); 500 500 501 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION) 502 parameters.shouldEnableNetworkCacheSpeculativeRevalidation = m_configuration->diskCacheSpeculativeValidationEnabled(); 503 #endif 504 501 505 #if PLATFORM(IOS_FAMILY) 502 506 String cookieStorageDirectory = WebProcessPool::cookieStorageDirectory();
Note: See TracChangeset
for help on using the changeset viewer.