window.open causes crashes when used with a content-primary browser

RESOLVED WORKSFORME

Status

()

Core
Document Navigation
--
critical
RESOLVED WORKSFORME
16 years ago
16 years ago

People

(Reporter: Pierre Baillet, Assigned: Adam Lock)

Tracking

({crash, testcase})

Trunk
crash, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
In a XUL page containing a browser set as "content-primary" and a button doing a
simple window.open, clicking on the button crashes the mozilla.


Expected Behaviour: another window opens.

Current Workaround: remove the content-primary attribute of the browser.
(Reporter)

Comment 1

16 years ago
Created attachment 80547 [details]
test case with workaround

no_crash.xml doesn't crash the mozilla.
crash.xml does crash the mozilla.

Comment 2

16 years ago
confirming crash using build 2002041903 on Win2k.
Talkback ID: TB5508107Z.

Excellent bug report btw !
Severity: major → critical
Keywords: crash, stackwanted, testcase

Comment 3

16 years ago
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc1) Gecko/20020417

Talkback ID: TB5516314G (23/04/2002 18:02 +0200)

Mozilla doesn't crash when I do this:
1. Launch Mozilla
2. CTRL-O (Open File) no_crash.xml
3. Click the button (which opens a new window)
4. In the new window, CTRL-O crash.xml
5. Click the button

Mozilla doesn't crash... However the window is all messed up and it displays
weird graphics and sometimes duplicates the taskbar even though the duplication
is only graphical not functional.
Attachment #80547 - Attachment mime type: application/x-tar → application/zip

Comment 4

16 years ago
Stack Signature  nsWritingIterator::write 63267169
Email Address
Product ID Mozilla1.0
Build ID 2002041717
Trigger Time 2002-04-23 09:00:07
Platform Win32
Operating System Windows 98 4.10 build 67766446
Module XPCOM.DLL
URL visited
User Comments Investigating bug #139408
http://bugzilla.mozilla.org/show_bug.cgi?id=139408
Trigger Reason Stack overflow
Source File Name ..\..\dist\include\string\nsStringIterator.h
Trigger Line No. 358
Stack Trace
nsWritingIterator::write [..\..\dist\include\string\nsStringIterator.h, line 358]
copy_string [..\..\dist\include\string\nsAlgorithm.h, line 92]
nsAString::do_AppendFromReadable
[d:\builds\seamonkey\mozilla\string\src\nsAString.cpp, line 363]
nsAString::do_AppendFromElementPtr
[d:\builds\seamonkey\mozilla\string\src\nsAString.cpp, line 369]
nsAutoString::nsAutoString
[d:\builds\seamonkey\mozilla\string\obsolete\nsString2.cpp, line 1188]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 167]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1721]
nsContentTreeOwner::FindItemWithName
[d:\builds\seamonkey\mozilla\xpfe\appshell\src\nsContentTreeOwner.cpp, line 215]
nsDocShell::FindItemWithName
[d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 1731]
Ooh... infinite recursion fun.  To docshell.  This crashes current linux too.
Assignee: rogerl → adamlock
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → Embedding: Docshell
Ever confirmed: true
Keywords: stackwanted
OS: Windows 2000 → All
QA Contact: pschwartau → adamlock
Hardware: PC → All
(Assignee)

Comment 6

16 years ago
WFM in latest trunk. Most probably fixed by checkin for bug 135811
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.