Changeset 256845 in webkit
- Timestamp:
- Feb 18, 2020, 11:55:39 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r256839 r256845 1 2020-02-18 Alex Christensen <achristensen@webkit.org> 2 3 Unreviewed, rolling out r254873. 4 https://bugs.webkit.org/show_bug.cgi?id=205751 5 6 This is reverting r254081 which is effectively re-landing part of r254873 that was reverted 7 supposing that would be related to the fix for rdar://problem/59136037 but it was not. 8 Re-landing this is a step towards rdar://problem/56027111 9 10 Reverted changeset: 11 12 "Revert suppressesConnectionTerminationOnSystemChange part of 13 r254081" 14 https://bugs.webkit.org/show_bug.cgi?id=205751 15 https://trac.webkit.org/changeset/254873 16 1 17 2020-02-18 Per Arne Vollan <pvollan@apple.com> 2 18 -
trunk/Source/WebKit/NetworkProcess/NetworkProcess.h
r255610 r256845 187 187 188 188 #if PLATFORM(COCOA) 189 bool suppressesConnectionTerminationOnSystemChange() const { return m_suppressesConnectionTerminationOnSystemChange; }190 189 RetainPtr<CFDataRef> sourceApplicationAuditData() const; 191 190 #endif … … 538 537 // In the future using WorkQueue and a counting semaphore would work, as would WorkQueue supporting the libdispatch concept of "work groups". 539 538 dispatch_group_t m_clearCacheDispatchGroup { nullptr }; 540 bool m_suppressesConnectionTerminationOnSystemChange { false };541 539 #endif 542 540 -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp
r255610 r256845 56 56 IPC::encode(encoder, networkATSContext.get()); 57 57 encoder << storageAccessAPIEnabled; 58 encoder << suppressesConnectionTerminationOnSystemChange;59 58 #endif 60 59 encoder << defaultDataStoreParameters; … … 121 120 if (!decoder.decode(result.storageAccessAPIEnabled)) 122 121 return false; 123 if (!decoder.decode(result.suppressesConnectionTerminationOnSystemChange))124 return false;125 122 #endif 126 123 -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h
r255610 r256845 71 71 RetainPtr<CFDataRef> networkATSContext; 72 72 bool storageAccessAPIEnabled; 73 bool suppressesConnectionTerminationOnSystemChange;74 73 #endif 75 74 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm
r255610 r256845 101 101 102 102 WebCore::NetworkStorageSession::setStorageAccessAPIEnabled(parameters.storageAccessAPIEnabled); 103 m_suppressesConnectionTerminationOnSystemChange = parameters.suppressesConnectionTerminationOnSystemChange;104 103 105 104 // FIXME: Most of what this function does for cache size gets immediately overridden by setCacheModel(). -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r256787 r256845 1108 1108 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || PLATFORM(IOS_FAMILY) 1109 1109 // FIXME: Replace @"kCFStreamPropertyAutoErrorOnSystemChange" with a constant from the SDK once rdar://problem/40650244 is in a build. 1110 if ( networkProcess.suppressesConnectionTerminationOnSystemChange() ||parameters.suppressesConnectionTerminationOnSystemChange)1110 if (parameters.suppressesConnectionTerminationOnSystemChange) 1111 1111 configuration._socketStreamProperties = @{ @"kCFStreamPropertyAutoErrorOnSystemChange" : @NO }; 1112 1112 #endif -
trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.cpp
r254873 r256845 68 68 copy->m_usesWebProcessCache = this->m_usesWebProcessCache; 69 69 copy->m_usesBackForwardCache = this->m_usesBackForwardCache; 70 #if PLATFORM(COCOA)71 copy->m_suppressesConnectionTerminationOnSystemChange = this->m_suppressesConnectionTerminationOnSystemChange;72 #endif73 70 copy->m_customWebContentServiceBundleIdentifier = this->m_customWebContentServiceBundleIdentifier; 74 71 copy->m_usesSingleWebProcess = m_usesSingleWebProcess; -
trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.h
r254873 r256845 144 144 void setCustomWebContentServiceBundleIdentifier(const WTF::String& customWebContentServiceBundleIdentifier) { m_customWebContentServiceBundleIdentifier = customWebContentServiceBundleIdentifier; } 145 145 146 #if PLATFORM(COCOA)147 bool suppressesConnectionTerminationOnSystemChange() const { return m_suppressesConnectionTerminationOnSystemChange; }148 void setSuppressesConnectionTerminationOnSystemChange(bool suppressesConnectionTerminationOnSystemChange) { m_suppressesConnectionTerminationOnSystemChange = suppressesConnectionTerminationOnSystemChange; }149 #endif150 151 146 private: 152 147 WTF::String m_injectedBundlePath; … … 179 174 bool m_isJITEnabled { true }; 180 175 bool m_usesSingleWebProcess { false }; 181 #if PLATFORM(COCOA)182 bool m_suppressesConnectionTerminationOnSystemChange { false };183 #endif184 176 }; 185 177 -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h
r254873 r256845 68 68 @property (nonatomic) BOOL usesWebProcessCache WK_API_AVAILABLE(macos(10.14.4), ios(12.2)); 69 69 @property (nonatomic) BOOL pageCacheEnabled WK_API_AVAILABLE(macos(10.14), ios(12.0)); 70 @property (nonatomic) BOOL suppressesConnectionTerminationOnSystemChange WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.suppressesConnectionTerminationOnSystemChange", macos(10.14, WK_MAC_TBA), ios(12.0, WK_IOS_TBA));71 70 @property (nonatomic, getter=isJITEnabled) BOOL JITEnabled WK_API_AVAILABLE(macos(10.14.4), ios(12.2)); 72 71 @property (nonatomic, nullable, copy, setter=setHSTSStorageDirectory:) NSURL *hstsStorageDirectory WK_API_AVAILABLE(macos(10.15), ios(13.0)); -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm
r254873 r256845 332 332 } 333 333 334 - (BOOL)suppressesConnectionTerminationOnSystemChange335 {336 return _processPoolConfiguration->suppressesConnectionTerminationOnSystemChange();337 }338 339 - (void)setSuppressesConnectionTerminationOnSystemChange:(BOOL)suppressesConnectionTerminationOnSystemChange340 {341 _processPoolConfiguration->setSuppressesConnectionTerminationOnSystemChange(suppressesConnectionTerminationOnSystemChange);342 }343 344 334 - (BOOL)isJITEnabled 345 335 { -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r256839 r256845 462 462 463 463 parameters.storageAccessAPIEnabled = storageAccessAPIEnabled(); 464 parameters.suppressesConnectionTerminationOnSystemChange = m_configuration->suppressesConnectionTerminationOnSystemChange();465 464 466 465 NSNumber *databaseEnabledValue = [defaults objectForKey:[NSString stringWithFormat:@"InternalDebug%@", WebPreferencesKey::isITPDatabaseEnabledKey().createCFString().get()]];
Note:
See TracChangeset
for help on using the changeset viewer.