Increase the minimum number of local matches in the awesomebar (bug 1219754); rs=mak

This commit is contained in:
Panos Astithas 2015-11-13 18:26:05 +02:00
Родитель 2f425d9745
Коммит 362b7a3220
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -71,7 +71,7 @@ const FRECENCY_DEFAULT = 1000;
// Remote matches are appended when local matches are below a given frecency
// threshold (FRECENCY_DEFAULT) as soon as they arrive. However we'll
// always try to have at least MINIMUM_LOCAL_MATCHES local matches.
const MINIMUM_LOCAL_MATCHES = 5;
const MINIMUM_LOCAL_MATCHES = 6;
// A regex that matches "single word" hostnames for whitelisting purposes.
// The hostname will already have been checked for general validity, so we

Просмотреть файл

@ -379,6 +379,8 @@ add_task(function* mixup_frecency() {
style: [ "bookmark" ] },
{ uri: NetUtil.newURI("http://example.com/lo4"),
title: "low frecency 4" },
{ uri: NetUtil.newURI("http://example.com/lo3"),
title: "low frecency 3" },
{
uri: makeActionURI(("searchengine"), {
engineName: ENGINE_NAME,
@ -401,8 +403,6 @@ add_task(function* mixup_frecency() {
style: ["action", "searchengine"],
icon: "",
},
{ uri: NetUtil.newURI("http://example.com/lo3"),
title: "low frecency 3" },
{ uri: NetUtil.newURI("http://example.com/lo2"),
title: "low frecency 2" },
{ uri: NetUtil.newURI("http://example.com/lo1"),