Closed
Bug 71940
Opened 24 years ago
Closed 24 years ago
Crash after Reload when getComputedStyle(element).SOMETHINGUNDEFINED was called
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
People
(Reporter: georg.maass, Assigned: jst)
Details
The follwoing test document alerts "undefined", but when you reload the document
after the alert, then Mozilla 0.8 crashes each time displaying a Dr. Watson
window on my NT machine.
<html>
<head>
<title>getComputedStyle-Test</title>
</head>
<body>
<p id="test1">Absatz</p>
<script>
alert(document.defaultView.getComputedStyle(document.getElementById('test1'),null).nodeName)
</script>
</body>
</html>
Reporter | ||
Comment 1•24 years ago
|
||
This displays the values after onload. When tryin to unload the page, it also
crashes.
<html>
<head>
<title>getComputedStyle-Test</title>
</head>
<body>
<p id="test1">Absatz</p>
<script>
e=document.defaultView.getComputedStyle(document.getElementById('test1'),null);
if(e) onload = init
function init()
{
alert('width: '+e.getPropertyValue('width')+'\nheight:
'+e.getPropertyValue('height'))
}
</script>
</body>
</html>
![]() |
||
Comment 2•24 years ago
|
||
Duplicate of bug 58830 ("PresShell/ViewManager ownership model needs to be
cleaned up.") via bug 63308 ("Crash on reload after calling getComputedStyle")
*** This bug has been marked as a duplicate of 58830 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 4•24 years ago
|
||
This was fixed a few weeks ago, btw...
You need to log in
before you can comment on or make changes to this bug.
Description
•