Closed Bug 29052 Opened 25 years ago Closed 24 years ago

doc.open->doc.write->doc.close in onLoad handler casues crash

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rginda, Assigned: jst)

Details

(Keywords: crash)

Attachments

(2 files)

The attached testcase crashes mozilla.

Steps to reproduce:
1) save the attached files as docwrite.html and docwrite.css
2) start mozilla and load docwrite.html?onload
(the ?onload tells the testcase to execute doOpen, doWrite, doClose, and
doLocate in the on load handler)
2) mozilla crashes.

Points of interest:
1) try loading docwrite.html without the ?onload
   click, in order, open, write, close
   mozilla will not crash.

2) in docwrite.html, change var writeStyle = true; to var writeStyle = false;
   load docwrite.html?onload
   mozilla will not crash
Attached file docwrite.html
Attached file docwrite.css
vidur: sounds like a generic document.write() bug. do you know about this? if 
not, i'm willing to poke at it for a while.
vidur, giving this to you.
Assignee: waterson → vidur
Severity: normal → critical
Keywords: crash
Seems to work for me on Windows on a 2/28/2000 build. Rob says he'll get an 
updated linux build for me to test on.
Seems to work for me on Linux as well. Tempted to mark this WORKSFORME, but I'll 
wait till Rob can confirm.
Thanks for waiting.  My build is about done, I'll see what's the dillio.
I SURE this used to crash!  Oh well.  It seems to work now, as does bug 29053. 
Marking both WORKSFORME.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Vidur, I think I found the problem here.  The I attached the testcase with var
writestyle=false, which doesn't crash the browser.  Could you verify that
setting writestyle=true and running the testcase crashes for you?
Re-opening.  Change writeStyle=false to writeStyle=true in the testcase to see
the crash.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Changing to DOM 0, reassigning to component owner.
Assignee: vidur → jst
Status: REOPENED → NEW
Component: Event Handling → DOM Level 0
QA Contact: janc → desale
This appears to be fixed now, I tested changing the writeStyle but no crash,
marking FIXED.
Status: NEW → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → FIXED
Robert, do you want to verify this one ?
I don't see crash, but you'd be better person to verify.
verified fixed
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: