RESOLVED FIXED 210626
NetworkSessionCocoa should request client certificate only once per host/port
https://bugs.webkit.org/show_bug.cgi?id=210626
Summary NetworkSessionCocoa should request client certificate only once per host/port
Alex Christensen
Reported 2020-04-16 16:18:47 PDT
NetworkSessionCocoa should request client certificate only once per host/port
Attachments
Patch (9.04 KB, patch)
2020-04-16 16:24 PDT, Alex Christensen
no flags
Patch (16.33 KB, patch)
2020-04-16 19:28 PDT, Alex Christensen
no flags
Patch (20.21 KB, patch)
2020-04-17 12:17 PDT, Alex Christensen
no flags
Patch (19.81 KB, patch)
2020-04-17 13:08 PDT, Alex Christensen
no flags
Patch (19.93 KB, patch)
2020-04-17 13:59 PDT, Alex Christensen
no flags
Patch (19.90 KB, patch)
2020-04-17 15:32 PDT, Alex Christensen
no flags
Patch (19.92 KB, patch)
2020-04-17 15:53 PDT, Alex Christensen
no flags
Patch (20.23 KB, patch)
2020-04-17 16:24 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2020-04-16 16:24:26 PDT
Alex Christensen
Comment 2 2020-04-16 16:24:37 PDT
Alex Christensen
Comment 3 2020-04-16 19:28:55 PDT
Alex Christensen
Comment 4 2020-04-17 12:17:28 PDT
Alex Christensen
Comment 5 2020-04-17 13:08:22 PDT
Alex Christensen
Comment 6 2020-04-17 13:59:05 PDT
Geoffrey Garen
Comment 7 2020-04-17 14:11:55 PDT
Comment on attachment 396794 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=396794&action=review r=me > Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.h:161 > + HashMap<std::pair<String, uint16_t>, RetainPtr<NSURLCredential>> m_successfulClientCertificates; Can we give a name to "std::pair<String, uint16_t>", and maybe use it in SuggestedClientCertificate too? Something like "Server" or "Endpoint" or just "HostAndPort". Maybe just make it a struct rather than a pair. > Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1037 > + if (UNLIKELY(!m_suggestedClientCertificates.isEmpty())) { Can be an early return to reduce nesting.
Alex Christensen
Comment 8 2020-04-17 15:32:40 PDT
Alex Christensen
Comment 9 2020-04-17 15:53:18 PDT
Alex Christensen
Comment 10 2020-04-17 16:24:44 PDT
Alex Christensen
Comment 11 2020-04-17 16:41:43 PDT
Note You need to log in before you can comment on or make changes to this bug.