Closed Bug 512394 Opened 15 years ago Closed 15 years ago

Textboxes disabled when alert is shown from an onblur event fired by alt+tab

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

1.9.1 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: blendboy, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) All the textboxes from all the open windows/tabs get disabled, and also the location and search bar, when I program a javascript alert shown from an onblur event, but only if the focus is lost switching (Ex. pressing alt+tab). Sometimes they are not disabled but the cursor disappears. Reproducible: Always Steps to Reproduce: 1.Go to http://pastehtml.com/view/090825MPxBY3Up.html 2.Give the focus to the textbox 3.Press Alt+tab Actual Results: The alertbox is shown, as it was programmed, but it appears one more time and when you close it the second time, all your textboxes in all your firefox windows/tabs gets disabled, or at least, the cursor disappears Expected Results: The alertbox is shown just once. You close it. Nothing else happens. I was able to solve it forcing the alertbox to wait half a second(It could be less, I didn't test it with less time) using a javascript setTimeout timer.
If you want to reproduce the bug by yourself instead of entering to the pastehtml.com sample, make an html page with this code: <html> <head><title>foo</title></head> <body> <form> <input type="text" onblur="alert('foo :S');" /><br/> </form> </body> </html>
Can you retest with the latest build for the behavior has changed: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → events
Version: unspecified → 1.9.1 Branch
(In reply to comment #2) > Can you retest with the latest build for the behavior has changed: > http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/ I downloaded the win32 version and tried to reproduce the bug there but I couldn't. That means that it's solved in that version, at least for me. I'll do more tests to be sure.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Thanks for reporting back and feel free to file new bugs if you find other issues.
(In reply to comment #4) > Thanks for reporting back and feel free to file new bugs if you find other > issues. Thanks to you for the support.
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.