RESOLVED FIXED 202544
Replace _WKProcessPoolConfiguration.suppressesConnectionTerminationOnSystemChange with SPI on _WKWebsiteDataStoreConfiguration
https://bugs.webkit.org/show_bug.cgi?id=202544
Summary Replace _WKProcessPoolConfiguration.suppressesConnectionTerminationOnSystemCh...
Alex Christensen
Reported 2019-10-03 13:23:28 PDT
Replace _WKProcessPoolConfiguration.suppressesConnectionTerminationOnSystemChange with SPI on _WKWebsiteDataStoreConfiguration
Attachments
Patch (10.73 KB, patch)
2019-10-03 13:24 PDT, Alex Christensen
thorton: review+
Alex Christensen
Comment 1 2019-10-03 13:24:31 PDT
Alex Christensen
Comment 2 2019-10-03 14:17:01 PDT
Radar WebKit Bug Importer
Comment 3 2019-10-03 14:17:19 PDT
mitz
Comment 4 2019-10-03 14:19:58 PDT
Comment on attachment 380156 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380156&action=review > Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.h:71 > +@property (nonatomic) BOOL suppressesConnectionTerminationOnSystemChange WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); How does this relate to website data?
Alex Christensen
Comment 5 2019-10-03 14:43:11 PDT
It goes in the NSURLSessionConfiguration, which is associated with a data store.
mitz
Comment 6 2019-10-03 14:47:48 PDT
(In reply to Alex Christensen from comment #5) > It goes in the NSURLSessionConfiguration, which is associated with a data > store. Unless I’m missing something, the NSURLSessionConfiguration association is an implementation detail and not part of the API, so that’s not a good motivator for introducing this property on _WKWebsiteDataStoreConfiguration.
Alex Christensen
Comment 7 2019-10-03 14:51:21 PDT
_WKWebsiteDataStoreConfiguration is currently the best place in the API/SPI for the properties that apply to all WKWebViews that share the same networking session. I've considered adding a network parameters object to the _WKWebsiteDataStoreConfiguration
mitz
Comment 8 2019-10-03 15:01:05 PDT
(In reply to Alex Christensen from comment #7) > _WKWebsiteDataStoreConfiguration is currently the best place in the API/SPI > for the properties that apply to all WKWebViews that share the same > networking session. It’s not immediately clear why. Does the concept of networking session exist in the API? Is it conceptually related to website data and/or persistence?
Alex Christensen
Comment 9 2019-10-03 15:06:29 PDT
(In reply to mitz from comment #8) > (In reply to Alex Christensen from comment #7) > > _WKWebsiteDataStoreConfiguration is currently the best place in the API/SPI > > for the properties that apply to all WKWebViews that share the same > > networking session. > > It’s not immediately clear why. Does the concept of networking session exist > in the API? Is it conceptually related to website data and/or persistence? A networking session *is* conceptually related to website data because of cookies and the HTTP cache.
Sam Weinig
Comment 10 2019-10-04 10:25:20 PDT
I agree with Mitz here. It doesn't seem like this makes sense as a property of the WebsiteDataStore. For now, it probably makes the most sense on WKWebView itself. Separately, this name is very opaque. What exactly is "SystemChange" in this context?
Note You need to log in before you can comment on or make changes to this bug.