[Webkit-unassigned] [Bug 113755] [Soup]TLS error bad certificate check in case of redirections

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 2 00:41:09 PDT 2013


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





--- Comment #1 from youenn fablet <youennf at gmail.com>  2013-04-02 00:39:21 PST ---
This bug can be examplified by modifying EWebLauncher setup.
For instance by inserting the two following lines at the end of ewk_main.cpp::_ewk_init_body:
    WebCore::ResourceHandle::setIgnoreSSLErrors(false);
    WebCore::ResourceHandle::setHostAllowsAnyHTTPSCertificate(“domain N1”);

A potential fix in ResourceHandleSoup::handleUnignoredTLSErrors could be something like:
- String lowercaseHostURL = handle->firstRequest().url().host().lower();
+ String lowercaseHostURL = String::fromUTF8(soup_uri_get_host(soup_message_get_uri(d->m_soupMessage.get()))).lower();

Although a test would probably be good to have (?), I wonder how it can be implemented within the current test framework.
Any advice?

-- 
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