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)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

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>
Assignee: evaughan → hyatt
Hyatt can you take a look at this? You were poking around in the table code. Looks like something quirky is going on.
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.
Target Milestone: M10 → M12
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).
Severity: normal → critical
crash -> critical severity
Target Milestone: M12 → M18
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Oh, wait. I fixed this a long time ago.
QA Contact: phillip → ckritzer
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.