Closed
Bug 338649
Opened 19 years ago
Closed 19 years ago
"ASSERTION: Options collection broken" involving optgroup inside option
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: sicking)
References
Details
(Keywords: assertion, testcase)
Attachments
(2 files)
304 bytes,
application/xhtml+xml
|
Details | |
8.29 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Security-sensitive only because bug 324918, where this assertion was added, is security-sensitive.
###!!! ASSERTION: Options collection broken: 'opt == aArray->ItemAsOption(aIndex++)', file /Users/admin/trunk/mozilla/content/html/content/src/nsHTMLSelectElement.cpp, line 2143
Reporter | ||
Comment 1•19 years ago
|
||
Assignee | ||
Comment 2•19 years ago
|
||
The problem is that the GetSelect method on nsHTMLOptionElement and nsHTMLOptGroupElement walks up the entire parent chain, rather than just a chain of optgroup elements. This confuses nsHTMLSelectElement since it gets notificaions from elements that it then doesn't find when walking the tree of just optgroup elements.
I fixed this and also gave the internal GetSelect methods better signatures to avoid extra QIs. Additionally I removed nsHTMLOptionElement::GetSelectFrame since that function isn't used
Assignee: nobody → bugmail
Status: NEW → ASSIGNED
Attachment #222853 -
Flags: superreview?(bzbarsky)
Attachment #222853 -
Flags: review?(bzbarsky)
![]() |
||
Comment 3•19 years ago
|
||
Comment on attachment 222853 [details] [diff] [review]
Patch to fix
Looks reasonable.
Attachment #222853 -
Flags: superreview?(bzbarsky)
Attachment #222853 -
Flags: superreview+
Attachment #222853 -
Flags: review?(bzbarsky)
Attachment #222853 -
Flags: review+
Reporter | ||
Comment 4•19 years ago
|
||
I think Sicking checked this patch in at 2006-07-27 14:06.
Assignee | ||
Comment 5•19 years ago
|
||
Indeed, thanks.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 6•19 years ago
|
||
How could this bug block bug 324918 if that one was fixed in 1.8.0.4 and this one wasn't?
Comment 7•18 years ago
|
||
This is either fixed on the branch or never affected it. Long-fixed, removing security flag
Group: security
You need to log in
before you can comment on or make changes to this bug.
Description
•