Bug 166981
Summary: | DumpRenderTree's credentials should support Latin-1 encoding | ||
---|---|---|---|
Product: | WebKit | Reporter: | John Wilander <wilander> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | achristensen, beidson, dbates, lforschler |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=166985 |
John Wilander
DumpRenderTree's setAuthenticationUsernameCallback() and setAuthenticationPasswordCallback() always convert incoming strings to UTF-8 through JSStringGetUTF8CString(). The credentials are then stored in standard strings (std::string). This cripples non-ASCII characters in Basic Authentication to the point where they are not sent in the challenge response, creating an infinite HTTP 401 loop. After the first failed attempt, challenge.previousFailureCount() in ResourceHandle::tryHandlePasswordBasedAuthentication() returns an unsigned larger than zero and ResourceHandle::tryHandlePasswordBasedAuthentication() will no longer look for credentials in the credential storage.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |