Commit 9fb26f81 authored by bdash's avatar bdash
Browse files

2007-03-15 Mark Rowe <mrowe@apple.com>

        Reviewed by Antti.

        Fix for <rdar://problem/5065060> ASSERTION FAILURE: newUsername && newPassword
        when submitting an authentication form without password.

        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::dispatchWillSubmitForm): Don't omit form fields with empty values from the dictionary
        passed to the delegate.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 44fd9c68
2007-03-15 Mark Rowe <mrowe@apple.com>
Reviewed by Antti.
Fix for <rdar://problem/5065060> ASSERTION FAILURE: newUsername && newPassword
when submitting an authentication form without password.
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::dispatchWillSubmitForm): Don't omit form fields with empty values from the dictionary
passed to the delegate.
2007-03-14 Anders Carlsson <acarlsson@apple.com>
 
Reviewed by Dave Hyatt.
......
......@@ -558,7 +558,6 @@ void WebFrameLoaderClient::dispatchWillSubmitForm(FramePolicyFunction function,
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] initWithCapacity:formState->values().size()];
HashMap<String, String>::const_iterator end = formState->values().end();
for (HashMap<String, String>::const_iterator it = formState->values().begin(); it != end; ++it)
if (!it->first.isNull() && !it->second.isNull())
[dictionary setObject:it->second forKey:it->first];
[formDelegate frame:m_webFrame.get()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment