Closed Bug 299867 Opened 19 years ago Closed 18 years ago

crash if 'select' is hidden by handler function

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 231830

People

(Reporter: vasfed, Unassigned)

References

()

Details

(Keywords: crash)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050509 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050509 Firefox/1.0.4

Firefox crashes, if javascript onChange handler function tries to set
style.display='none' for caller object when onChange caused by keypress.

Reproducible: Always

Steps to Reproduce:
1. html code:
<script> function test(t) { t.style.display='none'; } </script>
<select size=3 id='sel' onChange='test(this)'>
<option>1</option><option>2</option></select>

2. by pressing 'tab' set focus to the 'select'
3. press up/down
4. see error message about access violation
Actual Results:  
browser crashes, data entered in form lost

Expected Results:  
select element's value changed, it is hidden

access violation in firefox.exe
Confirming

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050706
Firefox/1.0.5

But works on the lastest trunk build tho ... so something must've been changed.
I will do more research on that.

Recommend --> Core - Javascript Engine (for now)
jayfromtaiwan@gmail.com: i recommend you don't make recommendations.

would someone please reproduce this with a talkback enabled build?
Keywords: crash
Version: unspecified → 1.0 Branch
1.0.5 and newest at the moment 1.0.6 are affected by this bug too...
seems to be fixed in 1.5 beta

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