Closed Bug 306105 Opened 19 years ago Closed 19 years ago

Crash if the first <option> element in a <select> has "display:none"

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 302356

People

(Reporter: sergiu, Unassigned)

References

()

Details

(Keywords: crash)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+

If the first <option> element has "display: none", when expanding the combobox
and moving the mouse over the dropdown list the browser crashes.

I noticed this in Deerpark Alpha 2. Firefox 1.0.6 works fine.

Reproducible: Always

Steps to Reproduce:
1.
  <select id="chwChartSubtypeInput" name="chwChartSubtypeInput">
    <optgroup label="Bar subtype">
      <option style="display: none">A</option>
      <option>B</option>
    </optgroup>
    <optgroup label="subtype">
      <option>C</option>
      <option>D</option>
    </optgroup>
    <optgroup label="subtype2">
      <option selected="selected">E</option>
      <option>F</option>
    </optgroup>
  </select>
2. Expand the combobox
3. Move the mouse down over the dropdown list
4. Expect a crash

Actual Results:  
The browser crashes

Expected Results:  
The first visible option is selected
The crash occurs only when there are <optgroup> elements also. Leaving only
<option> elements works fine.
Severity: normal → critical
Keywords: crash
Please provide a talkback ID for the crash. http://kb.mozillazine.org/Talkback
crashed for me on OS/2 Deer Park 2
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050827 Firefox/1.6a1
ID:2005082708

WFM.
Talkback ID TB8771636G on Linux on Deer Park 2
OS: Windows XP → All
I'm pretty sure this is the same as bug 302356 for which the fix was checked in
on 2005-08-07.

*** This bug has been marked as a duplicate of 302356 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: