mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-25 01:01:52 +00:00
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:
parent
2b5002cb1b
commit
c45f416b8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user