Closed Bug 295687 Opened 20 years ago Closed 20 years ago

With browser.tabs.showSingleWindowModePrefs enabled, browser will crash when closing window opened by javascript under certain circumstances

Categories

(Firefox :: Tabbed Browser, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 265962

People

(Reporter: bugzilla, Unassigned)

References

()

Details

Attachments

(2 files)

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

After enabling browser.tabs.showSingleWindowModePrefs, closing a window opened
using window.open from javascript will crash the browser if the opened window
contains the following attribute in its BODY-tag:

onunload="window.close();"


Reproducible: Always

Steps to Reproduce:
1. Enable browser.tabs.showSingleWindowModePrefs in about:config
2. In Tools/Options/Advanced, enable "Force links that open new windows to open in:"
3. Select the "a new tab"-radiobutton
4. Press OK to close Options
5. Navigate to http://landscentret.lctest.dk/mac/crashbug/parent.htm
6. Click the button "Clicking this button will open a window, which will crash
Firefox when closed"
7. http://landscentret.lctest.dk/mac/crashbug/child.htm will open in a new tab
8. Close the new tab
Actual Results:  
The browser crashed

Expected Results:  
Not crash :-)

I have reproduced this on
- Debian GNU/Linux system with Firefox 1.03 (no extensions)
- Windows XP with Firefox 1.01 (some extensions)
- Windows XP with Firefox 1.04 (some extensions)
- Windows Server 2003 with Firefox 1.04 (no extensions)
Thanks to tH on irc for pointing this out.

*** This bug has been marked as a duplicate of 265962 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: