summaryrefslogtreecommitdiffstats
path: root/accessible/tests/crashtests/471493.xul
blob: 2524d47cc2bd8be74846c14e8b9c26b115c8854f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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>