Bug 414257 - Stop searching for autocomplete results that won't be displayed. r=sspitzer, a1.9=beltzner, a1.9b3=beltzner
git-svn-id: svn://10.0.0.236/trunk@244565 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1668,12 +1668,12 @@ nsNavHistory::LoadPrefs(PRBool aInitializing)
|
||||
PRBool oldCompleteOnlyTyped = mAutoCompleteOnlyTyped;
|
||||
mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_ONLY_TYPED,
|
||||
&mAutoCompleteOnlyTyped);
|
||||
mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_MAX_RICH_RESULTS,
|
||||
&mAutoCompleteMaxResults);
|
||||
mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_SEARCH_CHUNK_SIZE,
|
||||
&mAutoCompleteSearchChunkSize);
|
||||
mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_SEARCH_TIMEOUT,
|
||||
&mAutoCompleteSearchTimeout);
|
||||
mPrefBranch->GetIntPref(PREF_AUTOCOMPLETE_MAX_RICH_RESULTS,
|
||||
&mAutoCompleteMaxResults);
|
||||
mPrefBranch->GetIntPref(PREF_AUTOCOMPLETE_SEARCH_CHUNK_SIZE,
|
||||
&mAutoCompleteSearchChunkSize);
|
||||
mPrefBranch->GetIntPref(PREF_AUTOCOMPLETE_SEARCH_TIMEOUT,
|
||||
&mAutoCompleteSearchTimeout);
|
||||
if (!aInitializing && oldCompleteOnlyTyped != mAutoCompleteOnlyTyped) {
|
||||
// update the autocomplete statements if the option has changed.
|
||||
nsresult rv = CreateAutoCompleteQueries();
|
||||
|
||||
Reference in New Issue
Block a user