From bbc11f10dc88f5e063358e8780c63fc5c1a52857 Mon Sep 17 00:00:00 2001 From: "hewitt%netscape.com" Date: Thu, 14 Sep 2006 05:59:29 +0000 Subject: [PATCH] 84809 - autocomplete prefs customization, r=matt, sr=blake --- suite/browser/navigator.css | 8 +-- suite/browser/urlbarBindings.xml | 119 ++++++++++++++++++++++++++----- 2 files changed, 105 insertions(+), 22 deletions(-) diff --git a/suite/browser/navigator.css b/suite/browser/navigator.css index 204276f9b32..c2b887569d6 100644 --- a/suite/browser/navigator.css +++ b/suite/browser/navigator.css @@ -29,12 +29,12 @@ window[chromehidden~="extrachrome"] .chromeclass-extrachrome { /* ::::: urlbar autocomplete ::::: */ -.autocomplete-result-popup[for="urlbar"] { - -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#autocomplete-result-popup") !important; +#urlbar { + -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#urlbar"); } -.autocomplete-result { - -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#autocomplete-result") !important; +.autocomplete-result-popup[for="urlbar"] { + -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#autocomplete-result-popup") !important; } .autocomplete-search-box { diff --git a/suite/browser/urlbarBindings.xml b/suite/browser/urlbarBindings.xml index be6c117b1a5..4c1c05dcfe9 100644 --- a/suite/browser/urlbarBindings.xml +++ b/suite/browser/urlbarBindings.xml @@ -5,6 +5,48 @@ xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + + + + + + + + Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); + + + + + + + + + + + + @@ -18,11 +60,13 @@ + + + + this.textbox.view.selectedIndex = val; @@ -55,21 +112,35 @@ Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); - + + @@ -91,6 +162,14 @@ ]]> + + + + + @@ -211,18 +290,22 @@ - - @@ -270,12 +353,12 @@ if (val != null) { this.parentNode.mSelectedIndex = null; this.parentNode.addEventListener("mouseover", this.parentMouseoverListener, false); - this.parentNode.addEventListener("destroy", this.parentDestroyListener, false); + this.parentNode.addEventListener("popupHiding", this.parentDestroyListener, false); if (this.activeChild) this.activeChild.setAttribute("menuactive", "true"); } else { this.parentNode.removeEventListener("mouseover", this.parentMouseoverListener, false); - this.parentNode.removeEventListener("destroy", this.parentDestroyListener, false); + this.parentNode.removeEventListener("popupHiding", this.parentDestroyListener, false); } ]]>