Bug 406396 xpfe "history-dropmarker" binding makes invalid assumption about menupop children. r=Neil a=NPOTB DONTBUILD

This commit is contained in:
Philip Chee 2011-01-17 12:43:15 +08:00
parent 54289858df
commit 9bb224136c

View File

@ -1745,7 +1745,7 @@
<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");