Strange bug in GRE (Gecko Runtime)

This is a bug that you might hit unlikely because its triggered by the incorrect use of the “grid” element.

The following code snippet when saved as a XUL file and loaded would make your Mozilla (or any Gecko powered browser) totally unresponsive so that you might eventually have to terminate the application:



<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="default.css" type="text/css"?>
<window id="test-grid-window" title="Grid Test"
  orient=”horizontal”
  xmlns=”http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul”>
  <grid>
    <columns>
      <column/>
      <column/>
    </columns>
    <rows>
      <row>
        <column/>
        <column/>
      </row>
    </rows>
  </grid>
</window>

The problem with the above code is the incorrect usage of the “column” element within the “row” element.

I have filed a bug on Mozilla and you can track it here.

technorati tags: , , ,

Leave a Reply