Bug 406396 xpfe "history-dropmarker" binding makes invalid assumption about menupop children. r=Neil a=NPOTB DONTBUILD
authorPhilip Chee <philip.chee@gmail.com>
Mon, 17 Jan 2011 12:43:15 +0800
changeset 29591 e7770564b9382fff008de8380120f2921ca98c77
parent 29590 eb22a9c3bd276c7f4d070c4090bf13300f5d9502
child 29592 9a2a2cf30642cd19fe0c731375f71fec5d9f6c11
push id2108
push userclokep@gmail.com
push dateMon, 22 Jan 2018 17:53:55 +0000
treeherdercomm-beta@c44930d8ad9b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, NPOTB
bugs406396
Bug 406396 xpfe "history-dropmarker" binding makes invalid assumption about menupop children. r=Neil a=NPOTB DONTBUILD
suite/common/autocomplete/resources/content/autocomplete.xml
--- a/suite/common/autocomplete/resources/content/autocomplete.xml
+++ b/suite/common/autocomplete/resources/content/autocomplete.xml
@@ -1740,17 +1740,17 @@
   </binding>
 
   <binding id="history-dropmarker" extends="chrome://global/content/bindings/general.xml#dropmarker">
       
     <implementation>
       <method name="showPopup">
         <body><![CDATA[
           var textbox = document.getBindingParent(this);
-          var kids = textbox.getElementsByTagName("menupopup");
+          var kids = textbox.getElementsByClassName("autocomplete-history-popup");
           if (kids.item(0) && textbox.getAttribute("open") != "true") { // Open history popup
             kids[0].showPopup(textbox, -1, -1, "popup", "bottomleft", "topleft");
             textbox.setAttribute("open", "true");
           }
         ]]></body>
       </method>
     </implementation>