Closed Bug 332563 Opened 19 years ago Closed 19 years ago

javascript onfocus containing alert on input field. When the alert loses focus, the input field recieves focus again and shows the alert box again (loop forever)

Categories

(Toolkit :: Form Manager, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 58441

People

(Reporter: chil.dk, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text Try this page: <html><body> <form> Click me!<input onfocus="alert('blah');"> </form> </body></html> When you click OK on the javascript alert, it pops up again (Linux only), because the input field received focus again. It continues forever. Kill the browser window to continue .. Reproducible: Always Steps to Reproduce: Save this as a HTML page and load it into Firefox under Linux <html><body> <form> Click me!<input onfocus="alert('blah');"> </form> </body></html> Actual Results: 1. The input field is clicked. 2. The input field receives focus 3. The alert window shows 4. Click OK on the alert window 5. Goto 2. Expected Results: The alert box should only be shown one time - as it does in Firefox/Windows. I used the Firefox which was bundled with RedHat Fedora Core 5.0, recently released.
Duplicate of Core bug 58441?
(In reply to comment #1) > Duplicate of Core bug 58441? > Yes, it seems to be. Sorry for not having studied the bug-list more extensively before submitting a new one. *** This bug has been marked as a duplicate of 58441 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.