Closed Bug 60058 Opened 24 years ago Closed 23 years ago

Mozilla crashes with scrollbox element containing tree

Categories

(Core :: XUL, defect, P2)

x86
Linux
defect

Tracking

()

RESOLVED INVALID
Future

People

(Reporter: moz_user, Assigned: eric)

References

Details

(Keywords: crash, Whiteboard: frame and view mismatch)

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/4.72 [en] (X11; U; Linux 2.4.0-test10 i686)
BuildID:    2000111309

Mozilla unable to XUL window containing a <scrollbox> element encompassing a
<tree> containing both <treecolgroup> and <treehead> elements.

Reproducible: Always
Steps to Reproduce:
1.Using "--chrome" Mozilla command line option, attempt to launch the following
XUL window.
2.
3.

Actual Results:  Mozilla immediatley crashes.

If the <treecolgroup> and <treehead> elements are removed, the window will
display. However, if the window is resized beyond the required tree width,
Mozilla will crash.

Expected Results:  Expect Mozilla to launch the specified XUL window.  If the
window is not large enough, scrollbars should appear in the scrollbox element.


Sample XUL window:
------------------

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin" type="text/css"?>

<window align="vertical"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/TR/REC-html40">

  <scrollbox orient="vertical">
    <tree id="testTree" flex="1">

      <treecolgroup id="theColumns">
        <treecol id="column-1"/>
        <splitter class="tree-splitter" onclick="resetWidth(1);"/>
        <treecol id="column-2"/>
        <splitter class="tree-splitter" onclick="resetWidth(2);"/>
      </treecolgroup>

      <treehead>
        <treerow id="headRow">
          <treecell class="treecell-header" value="Column 1"/>
          <treecell class="treecell-header" value="Column 2"/>
        </treerow>
      </treehead>

      <treechildren flex="1" id="treechildren-test">
        <treeitem>
          <treerow>
            <treecell value="The dog represents all that is best in man."/>
            <treecell value="Histories are more full of examples of fidelity of
dogs than of friends."/>
          </treerow>
        </treeitem>
      </treechildren>
      
    </tree>
  </scrollbox>

</window>
Keywords: crash
->evaughan, p2/critical for mozilla0.8
Assignee: trudelle → evaughan
Severity: normal → critical
Priority: P3 → P2
Target Milestone: --- → mozilla0.8
Looks like the frames and views get out of sync. Specifically the ScrollPortView
gets 2 children added to it. But ScrollPortViews can only have 1 child. Not sure
why this happens. A tool that can grahically show frames and views relationships
would be nice.
Status: NEW → ASSIGNED
Whiteboard: frame and view mismatch
Hey, Eric. You holding out on today's checkin? Something left in your tree?
Your checkin comment said you got this bug too (but it's still crashing in 
this evening's win2k build, from after your checkins today). [Actually, I 
was going to reopen, but then, duh, wasn't closed yet.]
->moz0.9
Target Milestone: mozilla0.8 → mozilla0.9
cc bryner, hyatt
moving to moz0.9.1.  Is this causing a real-world problem? In what application?
Have you put a workaround in place?  
Target Milestone: mozilla0.9 → mozilla0.9.1
Would have been nice for our specialized application, but since I couldn't find
a workaround, we just changed the UI instead...
Blocks: 77421
trees are deprecated, for multi-column please try outliner. ->future
Target Milestone: mozilla0.9.1 → Future
Attached file command line output (deleted) —
I have a similar problem.  I go to www.yahoo.com.  Then I click on finance. 
That page displays.  When I scroll down using either the mouse or the keypad
mozilla Milestone 0.9.1 crashes.  I have previously attached a file with some
command line output.
tree is no more
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: