Bug 36387

Summary: REGRESSION: Can "uncheck" radio buttons by clicking on them
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: FormsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
Attachments:
Description Flags
Patch dglazkov: review+

Description Simon Fraser (smfr) 2010-03-19 13:48:49 PDT
http://trac.webkit.org/changeset/56174/ broke radio buttons. You can now uncheck the only checked radio button by clicking on it.
Comment 1 Simon Fraser (smfr) 2010-03-19 16:10:40 PDT
Created attachment 51200 [details]
Patch
Comment 2 Dimitri Glazkov (Google) 2010-03-19 16:16:46 PDT
Comment on attachment 51200 [details]
Patch

r=me with nits:

> +    if (window.layoutTestController)
> +      layoutTestController.dumpAsText();
> +
> +    function dispatchEvent(target, eventType, offsetX, offsetY)
> +    {

two-space indent? :)

> +</body>
> +</html>
> \ No newline at end of file

add extra line break.

>              // As a way to store the state, we return 0 if we were unchecked, 1 if we were checked, and 2 for
>              // indeterminate.

remove that comment.

Comment 3 Simon Fraser (smfr) 2010-03-19 16:42:44 PDT
http://trac.webkit.org/changeset/56284