accessible/tests/crashtests/471493.xul
author Ryan VanderMeulen <ryanvm@gmail.com>
Tue, 11 Feb 2020 16:42:31 +0000
branchTHUNDERBIRD550b1_2017061508_RELBRANCH
changeset 575603 9eebc3f33831424089c2159ea1a0b865c1d6e3fb
parent 350132 79d61727522abfb72cf4c5613708a493bf0470c6
child 438636 5624ec2b5866159d42f0a680b926c0b530c66f32
permissions -rw-r--r--
Bug 1562666 - Close old branch THUNDERBIRD550b1_2017061508_RELBRANCH

<?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()
    {
      var accService = SpecialPowers.Cc["@mozilla.org/accessibilityService;1"].
        getService(SpecialPowers.Ci.nsIAccessibilityService);

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

      var tree = document.getElementById("tree");
      var treeAcc = accService.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>