471493.xul 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
  3. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  4. title="bug 471493 'crash [@ nsPropertyTable::GetPropertyInternal]'"
  5. onload="doTest();">
  6. <script type="application/javascript">
  7. <![CDATA[
  8. function doTest()
  9. {
  10. var accService = SpecialPowers.Cc["@mozilla.org/accessibilityService;1"].
  11. getService(SpecialPowers.Ci.nsIAccessibilityService);
  12. var treecol = document.getElementById("col");
  13. var x = treecol.boxObject.screenX;
  14. var y = treecol.boxObject.screenY;
  15. var tree = document.getElementById("tree");
  16. var treeAcc = accService.getAccessibleFor(tree);
  17. treeAcc.getChildAtPoint(x + 1, y + 1);
  18. }
  19. ]]>
  20. </script>
  21. <tree id="tree" flex="1">
  22. <treecols>
  23. <treecol id="col" flex="1" primary="true" label="column"/>
  24. <treecol id="scol" flex="1" label="column 2"/>
  25. </treecols>
  26. <treechildren id="treechildren"/>
  27. </tree>
  28. </window>