Closed
Bug 220779
Opened 21 years ago
Closed 21 years ago
onFocus handler for iframe keeps firing, browser becomes unusable
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: duke, Unassigned)
References
()
Details
(Whiteboard: DUPEME)
Attachments
(1 file)
139 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20030929 Firebird/0.7+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20030929 Firebird/0.7+
Testcase has an javascript alert() attached to it's onFocus handler, once it is
executed, it will be executed again over and over and over, thereby rendering
the browser unusable - cannot do anything else besides clicking the OK button.
The only way out is to kill the application.
Reproducible: Always
Steps to Reproduce:
1. Make sure you have nothing of importance open in any of your browser windows
or tabs
2. Open the URL or the attached testcase
3. Click on the gray border of the iframe
Actual Results:
An alert() is shown, clicking OK displays it again, etc.
Expected Results:
The alert should not be shown again.
Reporter | ||
Comment 1•21 years ago
|
||
Comment 3•21 years ago
|
||
wfm Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6a) Gecko/20030925
tested URL and testcase. Maybe it is a Firebird or Linux-only bug.
Did you test with Mozilla?
Comment 4•21 years ago
|
||
You could say the same for
javascript:while(1){alert('hah')}
..., no? Surely the better solution is to make alert() cancellable, and make
cancelling an alert() stop any script on the page, or something like that.
![]() |
||
Comment 5•21 years ago
|
||
Duplicate of the bug on the fact that the alert makes the iframe lose and regain
focus.... Please find that bug and mark this duplicate.
Whiteboard: DUPEME
Reporter | ||
Comment 6•21 years ago
|
||
Indeed, I cannot reproduce this bug in Windows with Firebird, yet it is 100%
reproducible in Linux.
Ian: the code in your example will act in the same way in all browsers, but this
particular bug only seems to occur in Firebird/Linux. The end result is the
same, but the cause is different. Your idea about canceling abort sounds good
though.
Boris: yes, this really seems to a duplicate of the bug you are describing, but
I wasn't able to find it base onthat description, perhaps you could provide some
more keywords to search on?
Comment 7•21 years ago
|
||
the dup bz is speaking of is probably bug 58441, that you found by yourself
earlier ;-)
Reporter | ||
Comment 8•21 years ago
|
||
*** This bug has been marked as a duplicate of 58441 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•