[Webkit-unassigned] [Bug 137300] [SOUP] TLS errors should take precedence over HTTP authentication

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 6 02:18:44 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137300





--- Comment #6 from Carlos Garcia Campos <cgarcia at igalia.com>  2014-10-06 02:18:41 PST ---
(In reply to comment #5)
> (From update of attachment 239022 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=239022&action=review
> 
> The change looks conceptually good to me. I was wondering if it wouldn't be better to listen to tls-errors notifications from the SoupMessage instead of having to handle these things in different parts of our code...

Yes, but unfortunately libsoup doesn't emit notify for tls-errors nor flags properties.

> > Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:-577
> > -    if (!response.soupMessageTLSErrors() || gIgnoreSSLErrors)
> 
> I guess this deserves a comment explaining that in the case of authentication challenge, the response has not been updated with the SoupMessage contents yet.

Ok.

> > Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:593
> > +    handle->client()->didFail(handle, ResourceError::tlsError(d->m_soupRequest.get(), tlsErrors, certificate));
> 
> So I guess both soupMessageCertificate() and soupMessageTLSErrors() became unused methods with these changes. Time to remove them?

No, those are used by CertificateInfo when created for a ResourceResponse

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list