Bug 102582

Summary: [Soup] CredentialStorage should only be used for HTTP-family requests
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: PlatformAssignee: Martin Robinson <mrobinson>
Status: RESOLVED FIXED    
Severity: Normal CC: danw, gustavo, rakuco, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch gustavo: review+

Description Martin Robinson 2012-11-16 22:03:21 PST
This is causing assertion failures on the debug bots.
Comment 1 Martin Robinson 2012-11-16 22:25:42 PST
Created attachment 174808 [details]
Patch
Comment 2 Gustavo Noronha (kov) 2012-11-16 23:12:51 PST
Comment on attachment 174808 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=174808&action=review

> Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:873
> +    if (!d->m_user.isEmpty() || !d->m_pass.isEmpty()) {
> +        // If credentials were specified for this request, add them to the url,
> +        // so that they will be passed to NetworkRequest.
> +        KURL urlWithCredentials(firstRequest().url());
> +        urlWithCredentials.setUser(d->m_user);
> +        urlWithCredentials.setPass(d->m_pass);
> +        d->m_firstRequest.setURL(urlWithCredentials);
> +    }

This is a left over, as we discussed on IRC, otherwise looks good!
Comment 3 Martin Robinson 2012-11-17 00:04:03 PST
Committed r135040: <http://trac.webkit.org/changeset/135040>