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)

x86
Linux
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 58441

People

(Reporter: duke, Unassigned)

References

()

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

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.
Attached file testcase
but this really seems to be a duplicate of bug 58441
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?
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.
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
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?
the dup bz is speaking of is probably bug 58441, that you found by yourself earlier ;-)
*** This bug has been marked as a duplicate of 58441 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Thanks Anti! VERIFIED dup
Status: RESOLVED → VERIFIED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: