[Webkit-unassigned] [Bug 70617] Optional "keytype" attribute for the <keygen> tag is handled incorrectly in appendFormData().

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 23 21:07:35 PDT 2011


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





--- Comment #11 from Darin Adler <darin at apple.com>  2011-10-23 21:07:35 PST ---
(In reply to comment #10)
> However, to make that work I need to remove the following check from appendForm():
> 
> if (value.isNull())
>   return false;
> 
> WebKit test runs (I tested this by building WebKit for chromium) seem to stub it out returning an empty String, causing the above check to fail.

If test runs returned an empty string, then that check would not fail. There is a distinct empty string and null string. If you want to change the stub to return an empty string instead of a null string, that’s OK with me. Making that change should not be difficult.

> I would argue that receiving an empty post request is worse (which happens now when keygen processing fails on the client) than receiving an empty "name= " POST (with this change).

If we’re going to actually consider changing the WebCore code then lets not talk about which of these two worse, lets talk about what desired behavior would be. Are there any real-world examples where keygen fails. If so, what would be the best possible behavior for that case and why? But lets discuss this in another bug, because there is no need for you to change WebCore just to make the test work.

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