Closed
Bug 7301
Opened 26 years ago
Closed 25 years ago
crash in layout with <box>, onload handler and <html:label>
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: Brade, Assigned: hyatt)
Details
I'm not sure why this particular file causes a crash in
nsTableOuterFrame::IR_TargetIsCaptionFrame(nsIPresContext&,nsHTMLReflowMetrics&
,OuterTableReflowState&,unsigned int&) or why it's in this particular code.
Details observed:
* mCaptionFrame is null so this call crashes
mCaptionFrame->GetRect(priorCaptionRect);
* removing or changing many of the tags will cause this not to crash
removing the <box> tag
removing the onload handler
changing the onLoad function to manipulate a checkbox rather than a label
...
* partial stack crawl includes:
nsTableOuterFrame::IR_TargetIsCaptionFrame
nsTableOuterFrame::IR_TargetIsChild
nsTableOuterFrame::IncrementalReflow
nsTableOuterFrame::Reflow
nsBoxFrame::FlowChildAt
nsBoxFrame::FlowChildren
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="onLoad()">
<html:script>
function onLoad()
{
// disable label's appearance by changing its class
var label = document.getElementById("label1");
if ( label )
{
label.setAttribute( "class", "disabled" );
}
}
</html:script>
<box align="horizontal">
<html:table>
<html:tr>
<html:td>
<html:label id="label1" class="enabled" > Label 1 </html:label>
</html:td>
</html:tr>
</html:table>
</box>
</window>
Updated•26 years ago
|
Assignee: evaughan → hyatt
Comment 1•26 years ago
|
||
Hyatt can you take a look at this? You were poking around in the table code.
Looks like something quirky is going on.
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M10
Moving all Widget Set bugs, past and present, to new HTML Form Controls
component per request from karnaze. Widget Set component will be retired
shortly.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M10 → M12
Assignee | ||
Comment 3•25 years ago
|
||
My hands have deteriorated to the point where I can no longer type. I need
help. If you think you can fix this bug on your own, please take it away from
me. If you'd like to volunteer to be my hands for a specific bug, then I'll be
happy to come up to your cube and sit with you and fix the bug (assuming you
have the patience for that).
Updated•25 years ago
|
Severity: normal → critical
Comment 4•25 years ago
|
||
crash -> critical severity
Assignee | ||
Updated•25 years ago
|
Target Milestone: M12 → M18
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•25 years ago
|
||
Oh, wait. I fixed this a long time ago.
Comment 6•25 years ago
|
||
Linux6, MacOS86, and Win98:
None of the platforms are crashing using the 2000-01-24-xx builds...
Marking VERIFED FIXED.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•