RESOLVED FIXED 216585
Move TLS certificate bypass SPI from WebProcessPool to WebsiteDataStore
https://bugs.webkit.org/show_bug.cgi?id=216585
Summary Move TLS certificate bypass SPI from WebProcessPool to WebsiteDataStore
Alex Christensen
Reported 2020-09-15 14:39:17 PDT
Move TLS certificate bypass SPI from WebProcessPool to WebsiteDataStore
Attachments
Patch (12.71 KB, patch)
2020-09-15 14:45 PDT, Alex Christensen
ews-feeder: commit-queue-
Patch (12.95 KB, patch)
2020-09-15 14:57 PDT, Alex Christensen
no flags
Patch (12.94 KB, patch)
2020-09-15 15:10 PDT, Alex Christensen
no flags
Patch (12.96 KB, patch)
2020-09-15 17:28 PDT, Alex Christensen
no flags
Patch (13.10 KB, patch)
2020-09-16 09:28 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2020-09-15 14:45:19 PDT
Geoffrey Garen
Comment 2 2020-09-15 14:46:06 PDT
Comment on attachment 408865 [details] Patch r=me
Alex Christensen
Comment 3 2020-09-15 14:57:14 PDT
EWS Watchlist
Comment 4 2020-09-15 14:57:52 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Alex Christensen
Comment 5 2020-09-15 15:10:09 PDT
Alex Christensen
Comment 6 2020-09-15 16:54:26 PDT
Comment on attachment 408867 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=408867&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:636 > +- (void)_allowTLSCertificate:(NSArray *)certificateChain forHost:(NSString *)host I'm going to call this _allowCertificateChain:forHost: because a certificate is one element of the array.
Alex Christensen
Comment 7 2020-09-15 16:58:34 PDT
Comment on attachment 408867 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=408867&action=review >> Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:636 >> +- (void)_allowTLSCertificate:(NSArray *)certificateChain forHost:(NSString *)host > > I'm going to call this _allowCertificateChain:forHost: because a certificate is one element of the array. _allowTLSCertificateChain
Alex Christensen
Comment 8 2020-09-15 17:28:10 PDT
Carlos Garcia Campos
Comment 9 2020-09-16 05:29:09 PDT
Comment on attachment 408880 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=408880&action=review > Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp:1628 > - context->priv->processPool->allowSpecificHTTPSCertificateForHost(webCertificateInfo.ptr(), String::fromUTF8(host)); > + WebsiteDataStore::defaultDataStore()->allowSpecificHTTPSCertificateForHost(webCertificateInfo.ptr(), String::fromUTF8(host)); This should be: auto& websiteDataStore = webkitWebsiteDataManagerGetDataStore(context->priv->websiteDataManager.get()); websiteDataStore.allowSpecificHTTPSCertificateForHost(webCertificateInfo.ptr(), String::fromUTF8(host)); The GLib API doesn't use the default data store.
Alex Christensen
Comment 10 2020-09-16 09:28:52 PDT
EWS
Comment 11 2020-09-16 11:21:10 PDT
Committed r267155: <https://trac.webkit.org/changeset/267155> All reviewed patches have been landed. Closing bug and clearing flags on attachment 408927 [details].
Radar WebKit Bug Importer
Comment 12 2020-09-16 11:22:15 PDT
Note You need to log in before you can comment on or make changes to this bug.