# HG changeset patch # User Neil Rashbrook # Date 1302387184 -3600 # Sat Apr 09 23:13:04 2011 +0100 # Node ID f51437392a5fe455f99dcf720b688fa2677c186f # Parent 2532d548f4bf06501a472b2630fb9fbd31ef783c Bug 642404 displays incorrectly on Linux; switch SeaMonkey (and Thunderbird) to use enablehistory="true" instead r=Standard8 DONTBUILD diff --git a/suite/components/autocomplete/resources/content/autocomplete.css b/suite/components/autocomplete/resources/content/autocomplete.css --- a/suite/components/autocomplete/resources/content/autocomplete.css +++ b/suite/components/autocomplete/resources/content/autocomplete.css @@ -12,16 +12,24 @@ .autocomplete-result-popup[hidden="true"] { visibility: hidden; } .autocomplete-tree { -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 instead of the placeholder child that should actually be inside the popupset. This is a stopgap measure, and it does not address the real bug. */ popupset { max-width: 0px; width: 0px; diff --git a/suite/components/autocomplete/resources/content/autocomplete.xml b/suite/components/autocomplete/resources/content/autocomplete.xml --- a/suite/components/autocomplete/resources/content/autocomplete.xml +++ b/suite/components/autocomplete/resources/content/autocomplete.xml @@ -24,17 +24,17 @@ + xbl:inherits="open,enablehistory" anonid="historydropmarker"/> @@ -48,17 +48,16 @@ // listen for menubar activation window.top.addEventListener("DOMMenuBarActive", this.mMenuBarListener, true); // set default property values this.ifSetAttribute("timeout", 50); this.ifSetAttribute("maxrows", 5); this.ifSetAttribute("showpopup", true); - this.ifSetAttribute("disablehistory", true); this.ifSetAttribute("disableKeyNavigation", true); // initialize the search sessions if (this.hasAttribute("autocompletesearch")) this.initAutoCompleteSearch(); if (this.hasAttribute("searchSessions")) this.initSearchSessions(); @@ -1001,17 +1000,17 @@ if (!aEvent.altKey) { this.clearTimer(); killEvent = this.keyNavigation(aEvent); break; } // 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(); else historyPopup.hidePopup(); } break; case KeyEvent.DOM_VK_PAGE_UP: