Bug 192577. URL bar's dropdown toggle button doesn't toggle. r=neil, sr=bz
git-svn-id: svn://10.0.0.236/trunk@145110 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1550,9 +1550,18 @@
|
||||
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
||||
</resources>
|
||||
|
||||
<implementation>
|
||||
<method name="removeOpenAttribute">
|
||||
<parameter name="parentNode"/>
|
||||
<body><![CDATA[
|
||||
parentNode.removeAttribute("open");
|
||||
]]></body>
|
||||
</method>
|
||||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="popuphiding"><![CDATA[
|
||||
parentNode.removeAttribute("open");
|
||||
setTimeout(this.removeOpenAttribute, 0c, this.parentNode);
|
||||
]]></handler>
|
||||
</handlers>
|
||||
</binding>
|
||||
@@ -1576,9 +1585,9 @@
|
||||
<body><![CDATA[
|
||||
var textbox = document.getBindingParent(this);
|
||||
var kids = textbox.getElementsByTagName("menupopup");
|
||||
if (kids.item(0)) { // Open 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);
|
||||
textbox.setAttribute("open", "true");
|
||||
}
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
Reference in New Issue
Block a user