b=498452; add pref for autocomplete timeout to firefox; r=mconnor

This commit is contained in:
Vladimir Vukicevic 2009-06-16 11:56:36 -07:00
parent 578416724b
commit d5881b5fa9
2 changed files with 11 additions and 3 deletions

View File

@ -228,6 +228,10 @@ pref("browser.urlbar.maxRichResults", 12);
// be waiting on the timeout too often without many results.
pref("browser.urlbar.search.chunkSize", 1000);
pref("browser.urlbar.search.timeout", 100);
// The amount of time (ms) to wait after the user has stopped typing
// before starting to perform autocomplete. 50 is the default set in
// autocomplete.xml.
pref("browser.urlbar.delay", 50);
// The special characters below can be typed into the urlbar to either restrict
// the search to visited history, bookmarked, tagged pages; or force a match on

View File

@ -1077,9 +1077,13 @@ function BrowserStartup() {
document.documentElement.setAttribute("height", defaultHeight);
}
if (gURLBar && document.documentElement.getAttribute("chromehidden").indexOf("toolbar") != -1) {
gURLBar.setAttribute("readonly", "true");
gURLBar.setAttribute("enablehistory", "false");
if (gURLBar) {
if (document.documentElement.getAttribute("chromehidden").indexOf("toolbar") != -1) {
gURLBar.setAttribute("readonly", "true");
gURLBar.setAttribute("enablehistory", "false");
}
gURLBar.timeout = gPrefService.getIntPref("browser.urlbar.delay");
}
setTimeout(delayedStartup, 0, isLoadingBlank, mustLoadSidebar);