Closed Bug 83259 Opened 23 years ago Closed 23 years ago

Crash when <object> element has no end-tag

Categories

(Core :: Layout, defect)

x86
Other
defect
Not set
critical

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: Erich.Iseli, Assigned: karnaze)

Details

(Keywords: crash)

The browser crashes when a page with an empty object element is contained in 
it. While I agree it is a wrong syntax, I think it should in no way produce a 
crash.
Severity: normal → critical
Keywords: crash
Could you please produce a testcase for us?
Yep, sorry. I'm behind a firewall and can't upload. So bear with the code 
pasted here:

----------------testcase.htm------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
  <head>
    <title>object testcase</title>
    <style type="text/css">
      object {width: 300px; height: 100px;}
      #obj1 {position: absolute; top:0; left: 0; scrolling: none;}
      #obj2 {position: absolute; top:100px; left:300px;}
    </style>
  </head>

  <body>
    <object data="object.htm" type="text/html" id="obj1">
    <object data="object.htm" type="text/html" id="obj2">
  </body>
</html>

--------------------------------------------------------------

---------------object.htm-------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title>object</title>
<style type="text/css">
body {background-color: silver;}
</style>
</head>

<body>
<div>Hello, I'm the same div like the other ;-)</div>
</body>
</html>

---------------------------------------------------------------
Er, maybe you could also need some other information: I'm using build 05-23 on 
a Windows NT. Crashed always, no matter how I loaded the file: dragged from 
desktop, opened with file / open. The only thing I couldn't test is when 
loading it from other than the local computer.
I iploaded the testcase here :
http://www.multimania.com/sconest/Mozilla/testcase.htm

Talkback ID : TB31105151E
See also bug #83066 which is either related or actually the same bug (different
symptoms though)
HTML Element component is deprecated, and should be removed from Bugzilla.
Clayton is not the correct owner for these. Reassigning to layout.
Assignee: clayton → karnaze
Component: HTML Element → Layout
QA Contact: bsharma → petersen
I'm not crashing on Win2K debug 7/10/01 on the test case mentioned in 
the 2001-05-30 11:53 comments. Marking wfm.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Yep, confirming what Karnaze says. No Crash in my Mozilla 0.9.2 on Windows 98.

Cool! another fix!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.