accessible/tests/crashtests/471493.xul
author Gregory Szorc <gps@mozilla.com>
Wed, 10 Oct 2012 11:08:09 -0700
changeset 109790 cff221895afe122f2bb51224d369e6d26509dfad
parent 25749 acdb66fda343f1308031b0cc41457d79f7394c3f
child 148880 baab6e4786ca31d0c67bee54a6cec4412ce26a4b
permissions -rw-r--r--
Bug 799291 - Part 3: Move mozbuild.testing into testing/; r=jhammel

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

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="bug 471493 'crash [@ nsPropertyTable::GetPropertyInternal]'"
        onload="doTest();">

  <script type="application/javascript">
  <![CDATA[
    function doTest()
    {
      netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");

      var accRetrieval = Components.classes["@mozilla.org/accessibleRetrieval;1"].
        getService(Components.interfaces.nsIAccessibleRetrieval);

      var treecol = document.getElementById("col");
      var x = treecol.boxObject.screenX;
      var y = treecol.boxObject.screenY;

      var tree = document.getElementById("tree");
      var treeAcc = accRetrieval.getAccessibleFor(tree);
      treeAcc.getChildAtPoint(x + 1, y + 1);
    }
  ]]>
  </script>

  <tree id="tree" flex="1">
    <treecols>
      <treecol id="col" flex="1" primary="true" label="column"/>
      <treecol id="scol" flex="1" label="column 2"/>
    </treecols>
    <treechildren id="treechildren"/>
  </tree>

</window>