Closed Bug 196008 Opened 22 years ago Closed 22 years ago

crash when dynamically creating iframe using js+DOM (except when debugging step-by-step)

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: sguazt, Assigned: blizzard)

References

Details

(Keywords: crash)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211 I have a page that when pressed a specified button create an IFrame using Javascript+DOM; with Mozilla 1.3a all worked; instead with Mozilla 1.3b when I press that button Mozilla crashes and exits. I've tried to debug with the JS Debugger and I've noticed that running in step-by-step mode all works; instead running in "Continue" mode Mozilla crashes too. In the attachment I have include an example. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Attached file Test Case
Uncompressing the attachment ("gzip -dc iframe.tgz | tar xvf -") the directory "iframe" will be created. Load "main.html" and then click on "Show Details" button. An IFrame at the bottom of the page should appear; however with Mozilla 1.3b, the browser crashes and exits.
WFM 2003030208, Windows 2000.
Severity: normal → critical
Keywords: crash
Attached file stacktrace (gtk2)
(gdb) frame 7 #7 0x415db69d in nsWindow::SetCursor(nsCursor) (this=0xbfffab38, aCursor=3221203644) at nsWindow.cpp:749 749 gdk_window_set_cursor(GTK_WIDGET(mContainer)->window, newCursor); (gdb) p newCursor $1 = (_GdkCursor *) 0xfffffffc (gdb) p mContainer $2 = (_MozContainer *) 0x0 (gdb) p mDrawingarea $3 = (_MozDrawingarea *) 0x0
I don't crash with a default build (20030304 and 1.3b), but got the attached stack with a trunk CVS/gtk2 build. sguazt: are you using a gtk2 build?
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'm using a GTK2 binary version downloaded from: http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.3b/Red_Hat_8x_RPMS/gtk2/i3 86/
wfm using build 2003030408 (trunk) on Win2k.
Yep, crash confirmed.
Blocks: gtk2
Status: NEW → ASSIGNED
==> blizzard
Assignee: frame → blizzard
Status: ASSIGNED → NEW
Attached patch patchSplinter Review
Simple crash fix.
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Thanks to all! I hope there will be a new binary release soon. :)
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: