Changeset 252818 in webkit
- Timestamp:
- Nov 22, 2019 5:08:29 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r252817 r252818 1 2019-11-22 Alex Christensen <achristensen@webkit.org> 2 3 Unreviewed, rolling out r252798. 4 5 Turns out my reverting earlier today wasn't so necessary after all. 6 This is effectively re-landing r250421. 7 8 Reverted changeset: 9 10 "Revert r250421" 11 https://bugs.webkit.org/show_bug.cgi?id=202290 12 https://trac.webkit.org/changeset/252798 13 1 14 2019-11-22 Kate Cheney <katherine_cheney@apple.com> 2 15 -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp
r252798 r252818 42 42 encoder.encodeEnum(cacheModel); 43 43 encoder << canHandleHTTPSServerTrustEvaluation; 44 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)45 encoder << shouldEnableNetworkCacheSpeculativeRevalidation;46 #endif47 44 #if PLATFORM(MAC) 48 45 encoder << uiProcessCookieStorageIdentifier; … … 96 93 return false; 97 94 98 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)99 if (!decoder.decode(result.shouldEnableNetworkCacheSpeculativeRevalidation))100 return false;101 #endif102 103 95 #if PLATFORM(MAC) 104 96 if (!decoder.decode(result.uiProcessCookieStorageIdentifier)) -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h
r252798 r252818 58 58 Vector<uint8_t> uiProcessCookieStorageIdentifier; 59 59 #endif 60 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)61 bool shouldEnableNetworkCacheSpeculativeRevalidation { false };62 #endif63 60 #if PLATFORM(IOS_FAMILY) 64 61 SandboxExtension::Handle cookieStorageDirectoryExtensionHandle; -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm
r252798 r252818 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 #endif122 123 118 // Disable NSURLCache. 124 119 auto urlCache(adoptNS([[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil])); -
trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.cpp
r252798 r252818 45 45 auto copy = this->create(); 46 46 47 copy->m_diskCacheSpeculativeValidationEnabled = this->m_diskCacheSpeculativeValidationEnabled;48 47 copy->m_injectedBundlePath = this->m_injectedBundlePath; 49 48 copy->m_customClassesForParameterCoder = this->m_customClassesForParameterCoder; -
trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.h
r252798 r252818 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; }73 70 74 71 void setUsesBackForwardCache(bool value) { m_usesBackForwardCache = value; } … … 152 149 153 150 private: 154 bool m_diskCacheSpeculativeValidationEnabled { false };155 151 WTF::String m_injectedBundlePath; 156 152 Vector<WTF::String> m_customClassesForParameterCoder; -
trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp
r252798 r252818 420 420 } 421 421 422 void WKContextSetDiskCacheSpeculativeValidationEnabled(WKContextRef contextRef, bool value) 423 { 424 WebKit::toImpl(contextRef)->configuration().setDiskCacheSpeculativeValidationEnabled(value); 422 void WKContextSetDiskCacheSpeculativeValidationEnabled(WKContextRef, bool) 423 { 425 424 } 426 425 -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm
r252798 r252818 110 110 - (BOOL)diskCacheSpeculativeValidationEnabled 111 111 { 112 return _processPoolConfiguration->diskCacheSpeculativeValidationEnabled();112 return NO; 113 113 } 114 114 115 115 - (void)setDiskCacheSpeculativeValidationEnabled:(BOOL)enabled 116 116 { 117 _processPoolConfiguration->setDiskCacheSpeculativeValidationEnabled(enabled);118 117 } 119 118 -
trunk/Source/WebKit/UIProcess/WebProcessPool.cpp
r252805 r252818 499 499 parameters.urlSchemesRegisteredForCustomProtocols.append(scheme); 500 500 501 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)502 parameters.shouldEnableNetworkCacheSpeculativeRevalidation = m_configuration->diskCacheSpeculativeValidationEnabled();503 #endif504 505 501 #if PLATFORM(IOS_FAMILY) 506 502 String cookieStorageDirectory = WebProcessPool::cookieStorageDirectory();
Note: See TracChangeset
for help on using the changeset viewer.