Bug 566489 - Enable inline autocomplete again, but make it smarter.

Original patch by Michael Ventnor, further improved by David Dahl <ddahl@mozilla.com>.
r=mak
This commit is contained in:
Michael Ventnor
2012-01-19 12:31:24 +01:00
parent 711543c044
commit 62b201e061
7 changed files with 522 additions and 141 deletions

View File

@@ -1098,6 +1098,12 @@ nsAutoCompleteController::StartSearchTimer()
PRUint32 timeout;
mInput->GetTimeout(&timeout);
if (timeout == 0) {
// The consumer wants to execute the search synchronously
StartSearch();
return NS_OK;
}
nsresult rv;
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
if (NS_FAILED(rv))