78749 - only show history folders that contain entries.

77935 - make autocomplete from global history optional.

126320 - invalid typed urls should be hidden and expire quickly.

126127 - custom keyword with :// doesn't work.

r=hewitt sr=alecf
This commit is contained in:
blakeross%telocity.com 2006-09-14 06:02:56 +00:00
parent 2b5002cb1b
commit c45f416b8b

View File

@ -256,10 +256,19 @@ function addToUrlbarHistory()
} // while
// Otherwise, we've got a new URL in town. Add it!
try {
var url = entryToAdd.Value;
if (url.indexOf(" ") == -1) {
var fixedUpURI = gURIFixup.createFixupURI(url, 0);
gGlobalHistory.markPageAsTyped(fixedUpURI.spec);
}
}
catch(ex) {
}
// Put the value as it was typed by the user in to RDF
// Insert it to the beginning of the list.
var fixedUpURI = gURIFixup.createFixupURI(entryToAdd.Value, 0);
gGlobalHistory.markPageAsTyped(fixedUpURI.spec);
entries.InsertElementAt(entryToAdd, 1, true);
// Remove any expired history items so that we don't let