Closed Bug 35605 Opened 24 years ago Closed 24 years ago

Reference to offsetParent from HTML node causes segfault

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: matchen, Assigned: jst)

Details

(Keywords: crash, testcase)

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
BuildID:    2000022820

From JavaScript, if I access certain HTML DOM nodes and try to access the 
offsetParent property, Mozilla segfaults.  This seems to happen for <HTML>, 
<HEAD>, and <TITLE> nodes...so far.

Reproducible: Always
Steps to Reproduce:
Load the following:

<html>
  <head>
    <title></title>
    <script type="text/javascript">
      function go()
      {
        var node = document.documentElement;
        alert(node.offsetParent);
      }
    </script>
  </head>
  <body onload="go();">
    <h1>Hello, world!</h1>
  </body>
</html>

Actual Results:  Mozilla goes away and I get an exception popup.

Expected Results:  Mozilla shouldn't go away and give me an exception screen.
Confirming bug. Successfully reproduced on PC/Linux
with build 2000-04-10-08. Adding crash keyword.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash, testcase
I just checked in a fix for this, marking FIXED.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified with 2000-02-22-08.
Verified with 2000-02-22-08.
Status: RESOLVED → VERIFIED
Plenty of tests covering offsetParent, no need to add this testcase.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: