content/xul/content/crashtests/326864-1.xul
author Nigel Babu <nigelbabu@gmail.com>
Thu, 07 Aug 2014 08:47:18 +0530
changeset 198247 afcb3af79d09513b2772c629c23a0d9f7b7437b4
parent 145959 cc6d2facb9874908f6d4aa22e4b5b5e40c23e509
parent 198202 a7180856b416f85cdf10e026e02db9e93edb4a8d
permissions -rw-r--r--
Merge m-i to m-c

<?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">


<script>

function getAnonymousNodes(e) {
  return SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(e));
}

function init()
{
  var tt = document.getElementById("textbox");
  var hb = getAnonymousNodes(tt)[0]; // hbox
  var men = getAnonymousNodes(hb)[1]; // menupopup
  var menitem = men.childNodes[0]; // menuitem
  var hb2 = getAnonymousNodes(menitem)[1]; // hbox
  var label2 = hb2.childNodes[0]; // label

  men.menu = null;
  label2.click();
}

window.addEventListener("load", init, false);

</script>


<textbox id="textbox"/>

    
</window>