WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 88835
Checking a radio button doesn't uncheck other buttons in the same group in some cases
https://bugs.webkit.org/show_bug.cgi?id=88835
Summary
Checking a radio button doesn't uncheck other buttons in the same group in so...
Ryosuke Niwa
Reported
2012-06-11 20:43:14 PDT
Created
attachment 147002
[details]
Demonstrates the assertion failure ASSERTION FAILED: m_nameToGroupMap /Volumes/Data/webkit3/Source/WebCore/dom/CheckedRadioButtons.cpp(199) : void WebCore::CheckedRadioButtons::updateCheckedState(WebCore::HTMLInputElement*) 1 0x102d9175d WebCore::CheckedRadioButtons::updateCheckedState(WebCore::HTMLInputElement*) 2 0x1036df1f7 WebCore::HTMLInputElement::setChecked(bool, WebCore::TextFieldEventBehavior) 3 0x103a1e216 WebCore::setJSHTMLInputElementChecked(JSC::ExecState*, JSC::JSObject*, JSC::JSValue) 4 0x103a1fe95 bool JSC::lookupPut<WebCore::JSHTMLInputElement>(JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::HashTable const*, WebCore::JSHTMLInputElement*, bool) 5 0x103a1ff26 void JSC::lookupPut<WebCore::JSHTMLInputElement, WebCore::JSHTMLElement>(JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::HashTable const*, WebCore::JSHTMLInputElement*, JSC::PutPropertySlot&) 6 0x103a1e31a WebCore::JSHTMLInputElement::put(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&) 7 0x101e5bbdd JSC::JSValue::put(JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&) 8 0x10206141f llint_slow_path_put_by_id 9 0x10206a6ac llint_op_put_by_id
Attachments
Demonstrates the assertion failure
(2.76 KB, text/html)
2012-06-11 20:43 PDT
,
Ryosuke Niwa
no flags
Details
Patch
(4.78 KB, patch)
2012-06-11 23:49 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch 2
(6.24 KB, patch)
2012-06-12 01:28 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2012-06-11 20:44:44 PDT
Note please place the attached file in fast/forms or other paths that's 2-directories below LayoutTests.
Kent Tamura
Comment 2
2012-06-11 22:50:02 PDT
I identified the problem.
http://trac.webkit.org/changeset/111051
was incomplete.
r111051
changed the behavior so that radio buttons in an orphan form make groups. However the current code unregisters a radio button from its group whenever a tree including the radio button is detached from a tree.
Kent Tamura
Comment 3
2012-06-11 23:49:29 PDT
Created
attachment 147023
[details]
Patch
Ryosuke Niwa
Comment 4
2012-06-12 00:18:21 PDT
Comment on
attachment 147023
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=147023&action=review
> Source/WebCore/ChangeLog:5 > + Fix a bug that checking a radio button in a radio button group in a from > + detached from a document tree doesn't uncheck another radio button in > + the radio button group.
Why is this different from the bug title? I should go below the reviewed by line.
> Source/WebCore/ChangeLog:14 > + Register this to CheckedRadioButtons only if new owner is Document.
Did you mean only if the new owner is in the document? Also, could you explain why doing so fixes the bug?
> Source/WebCore/ChangeLog:16 > + Unregister this from CheckedRadioButtons only if old owner was Document.
Ditto.
Kent Tamura
Comment 5
2012-06-12 01:28:33 PDT
Created
attachment 147033
[details]
Patch 2 Update ChangeLog
Ryosuke Niwa
Comment 6
2012-06-12 09:01:18 PDT
Comment on
attachment 147033
[details]
Patch 2 Thanks for the detailed description!
WebKit Review Bot
Comment 7
2012-06-12 14:04:23 PDT
Comment on
attachment 147033
[details]
Patch 2 Clearing flags on attachment: 147033 Committed
r120118
: <
http://trac.webkit.org/changeset/120118
>
WebKit Review Bot
Comment 8
2012-06-12 14:04:28 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug