Closed Bug 300531 Opened 19 years ago Closed 16 years ago

crash if alert dialog displayed, page is still loading, and dismiss alert dialog after page loaded

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED INCOMPLETE

People

(Reporter: muhammadoosmansaeed, Unassigned)

Details

(Keywords: crash, Whiteboard: closeme 2009-05-25)

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

I used the following PHP code:

#-----------------------------------------------------------
<form>
        onBlur<br />
        <input type="text" name="lastname2" size="6" onBlur="alert('onblur')"
/><br />
	noThing<br />
	<input type="text" name="lastname2" size="6" /><br />
<? sleep(5) ?>
        onFocus<br />
        <input type="text" name="lastname3" size="6" onFocus="alert('onfocus')"
/><br />
<form>

#-----------------------------------------------------------

Steps to reproduce bug:

*Make a php page with above source and load in Firefox
*It will take some time because of sleep(5) before page is finished loading
*Put cursor in the box below onblur
*Refresh page
*Quickly before page finishes loading, move cursor to another box so that the
'onblur' handler gets invoked and alert box is displayed.
*Don't dismiss the alert box, wait until page is finished loading
*After finished loading, dismiss alert box

Browser crashes!



Reproducible: Always
Can you test if this crashes with the latest nightly trunk build?
http://ftp.scarlet.be/pub/mozilla.org/firefox/nightly/latest-trunk/
i ran into something very similar to this today.

If I pop up an alert from an onblur() handler, reload the page, then dismiss the alert, the browser 
crashes.

This was with FireFox 1.0.6 on Linux.  On OS X and Windows the alert dialogs are modal enough such 
that I cannot reload the page w/o dismissing the alert.

With 1.5b1, I get the following error dialog instead of a crash: "ReferenceError: <function> is not 
defined" where <function> is the function i called after the alert.

I filed a talkback for the crash here:

http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=9320595

and a test page which can trigger the bug is here:

http://off.net/~jacob/crash.html
bug 308025?
Well, in bug 297561, I attached a patch (
https://bugzilla.mozilla.org/attachment.cgi?id=189871 )
that would make alert dialogs modal. I think that could make the dialog also
modal in Linux.
The patch got obsoleted, but I think Ere did that unintentionally.
I'm using windows, so I can't test if the patch makes alert dialogs modal in Linux.
still see this problem?
if not please close this bug accordingly (probably worksforme)
Severity: normal → critical
Keywords: crash
Whiteboard: closeme 2009-05-25
@Reporter, we have not heard back from you in a while, so I am closing this bug as INCOMPLETE. You can reopen this bug if more information becomes available. Some helpful information you can provide us is found at http://quality.mozilla.org/bug-writing-guidelines. You should also use a recent version of Firefox, from http://www.getfirefox.com.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.