layout/xul/crashtests/329477-1.xhtml

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     4 <script>
     6 <![CDATA[
     9 function init() 
    10 { 
    11   var textbox = document.getElementsByTagName("textbox")[0];
    12   var hbox = SpecialPowers.wrap(document).getAnonymousNodes(textbox)[0];
    13   var menupopup = SpecialPowers.wrap(document).getAnonymousNodes(hbox)[1];
    15   menupopup.click();
    16 }
    18 window.addEventListener("load", init, false);
    20 ]]>
    21 </script>
    23 </head>
    25 <body>
    28   <textbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>
    30 </body>
    31 </html>

mercurial