Changeset 256845 in webkit


Ignore:
Timestamp:
Feb 18, 2020, 11:55:39 AM (5 years ago)
Author:
achristensen@apple.com
Message:

Unreviewed, rolling out r254873.
https://bugs.webkit.org/show_bug.cgi?id=205751

This is reverting r254081 which is effectively re-landing part of r254873 that was reverted
supposing that would be related to the fix for rdar://problem/59136037 but it was not.
Re-landing this is a step towards rdar://problem/56027111

Reverted changeset:

"Revert suppressesConnectionTerminationOnSystemChange part of
r254081"
https://bugs.webkit.org/show_bug.cgi?id=205751
https://trac.webkit.org/changeset/254873

Location:
trunk/Source/WebKit
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r256839 r256845  
     12020-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
    1172020-02-18  Per Arne Vollan  <pvollan@apple.com>
    218
  • trunk/Source/WebKit/NetworkProcess/NetworkProcess.h

    r255610 r256845  
    187187
    188188#if PLATFORM(COCOA)
    189     bool suppressesConnectionTerminationOnSystemChange() const { return m_suppressesConnectionTerminationOnSystemChange; }
    190189    RetainPtr<CFDataRef> sourceApplicationAuditData() const;
    191190#endif
     
    538537    // In the future using WorkQueue and a counting semaphore would work, as would WorkQueue supporting the libdispatch concept of "work groups".
    539538    dispatch_group_t m_clearCacheDispatchGroup { nullptr };
    540     bool m_suppressesConnectionTerminationOnSystemChange { false };
    541539#endif
    542540
  • trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp

    r255610 r256845  
    5656    IPC::encode(encoder, networkATSContext.get());
    5757    encoder << storageAccessAPIEnabled;
    58     encoder << suppressesConnectionTerminationOnSystemChange;
    5958#endif
    6059    encoder << defaultDataStoreParameters;
     
    121120    if (!decoder.decode(result.storageAccessAPIEnabled))
    122121        return false;
    123     if (!decoder.decode(result.suppressesConnectionTerminationOnSystemChange))
    124         return false;
    125122#endif
    126123
  • trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h

    r255610 r256845  
    7171    RetainPtr<CFDataRef> networkATSContext;
    7272    bool storageAccessAPIEnabled;
    73     bool suppressesConnectionTerminationOnSystemChange;
    7473#endif
    7574
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm

    r255610 r256845  
    101101
    102102    WebCore::NetworkStorageSession::setStorageAccessAPIEnabled(parameters.storageAccessAPIEnabled);
    103     m_suppressesConnectionTerminationOnSystemChange = parameters.suppressesConnectionTerminationOnSystemChange;
    104103
    105104    // FIXME: Most of what this function does for cache size gets immediately overridden by setCacheModel().
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

    r256787 r256845  
    11081108#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || PLATFORM(IOS_FAMILY)
    11091109    // 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)
    11111111        configuration._socketStreamProperties = @{ @"kCFStreamPropertyAutoErrorOnSystemChange" : @NO };
    11121112#endif
  • trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.cpp

    r254873 r256845  
    6868    copy->m_usesWebProcessCache = this->m_usesWebProcessCache;
    6969    copy->m_usesBackForwardCache = this->m_usesBackForwardCache;
    70 #if PLATFORM(COCOA)
    71     copy->m_suppressesConnectionTerminationOnSystemChange = this->m_suppressesConnectionTerminationOnSystemChange;
    72 #endif
    7370    copy->m_customWebContentServiceBundleIdentifier = this->m_customWebContentServiceBundleIdentifier;
    7471    copy->m_usesSingleWebProcess = m_usesSingleWebProcess;
  • trunk/Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.h

    r254873 r256845  
    144144    void setCustomWebContentServiceBundleIdentifier(const WTF::String& customWebContentServiceBundleIdentifier) { m_customWebContentServiceBundleIdentifier = customWebContentServiceBundleIdentifier; }
    145145
    146 #if PLATFORM(COCOA)
    147     bool suppressesConnectionTerminationOnSystemChange() const { return m_suppressesConnectionTerminationOnSystemChange; }
    148     void setSuppressesConnectionTerminationOnSystemChange(bool suppressesConnectionTerminationOnSystemChange) { m_suppressesConnectionTerminationOnSystemChange = suppressesConnectionTerminationOnSystemChange; }
    149 #endif
    150 
    151146private:
    152147    WTF::String m_injectedBundlePath;
     
    179174    bool m_isJITEnabled { true };
    180175    bool m_usesSingleWebProcess { false };
    181 #if PLATFORM(COCOA)
    182     bool m_suppressesConnectionTerminationOnSystemChange { false };
    183 #endif
    184176};
    185177
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h

    r254873 r256845  
    6868@property (nonatomic) BOOL usesWebProcessCache WK_API_AVAILABLE(macos(10.14.4), ios(12.2));
    6969@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));
    7170@property (nonatomic, getter=isJITEnabled) BOOL JITEnabled WK_API_AVAILABLE(macos(10.14.4), ios(12.2));
    7271@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  
    332332}
    333333
    334 - (BOOL)suppressesConnectionTerminationOnSystemChange
    335 {
    336     return _processPoolConfiguration->suppressesConnectionTerminationOnSystemChange();
    337 }
    338 
    339 - (void)setSuppressesConnectionTerminationOnSystemChange:(BOOL)suppressesConnectionTerminationOnSystemChange
    340 {
    341     _processPoolConfiguration->setSuppressesConnectionTerminationOnSystemChange(suppressesConnectionTerminationOnSystemChange);
    342 }
    343 
    344334- (BOOL)isJITEnabled
    345335{
  • trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

    r256839 r256845  
    462462
    463463    parameters.storageAccessAPIEnabled = storageAccessAPIEnabled();
    464     parameters.suppressesConnectionTerminationOnSystemChange = m_configuration->suppressesConnectionTerminationOnSystemChange();
    465464
    466465    NSNumber *databaseEnabledValue = [defaults objectForKey:[NSString stringWithFormat:@"InternalDebug%@", WebPreferencesKey::isITPDatabaseEnabledKey().createCFString().get()]];
Note: See TracChangeset for help on using the changeset viewer.