Bug 642404 <autocomplete disablehistory="false"> displays incorrectly on Linux; switch SeaMonkey (and Thunderbird) to use enablehistory="true" instead r=Standard8

DONTBUILD
This commit is contained in:
Neil Rashbrook 2011-04-09 23:13:04 +01:00
parent 3c025ebe4d
commit 29285bad47
2 changed files with 10 additions and 3 deletions

View File

@ -17,6 +17,14 @@
-moz-user-focus: ignore;
}
.autocomplete-history-dropmarker {
display: none;
}
.autocomplete-history-dropmarker[enablehistory="true"] {
display: -moz-box;
}
/* The following rule is here to fix bug 96899 (and now 117952).
Somehow trees create a situation
in which a popupset flows itself as if its popup child is directly within it

View File

@ -29,7 +29,7 @@
</xul:hbox>
<xul:dropmarker class="autocomplete-history-dropmarker" allowevents="true"
xbl:inherits="open,hidden=disablehistory" anonid="historydropmarker"/>
xbl:inherits="open,enablehistory" anonid="historydropmarker"/>
<xul:popupset>
<xul:panel type="autocomplete" anonid="popup"
@ -53,7 +53,6 @@
this.ifSetAttribute("timeout", 50);
this.ifSetAttribute("maxrows", 5);
this.ifSetAttribute("showpopup", true);
this.ifSetAttribute("disablehistory", true);
this.ifSetAttribute("disableKeyNavigation", true);
// initialize the search sessions
@ -1006,7 +1005,7 @@
// Alt+Down falls through to history popup toggling code
case KeyEvent.DOM_VK_F4:
if (!aEvent.ctrlKey && !aEvent.shiftKey && this.getAttribute("disablehistory") != "true") {
if (!aEvent.ctrlKey && !aEvent.shiftKey && this.getAttribute("enablehistory") == "true") {
var historyPopup = document.getAnonymousElementByAttribute(this, "anonid", "historydropmarker");
if (historyPopup)
historyPopup.showPopup();