зеркало из https://github.com/mozilla/gecko-dev.git
Increase the minimum number of local matches in the awesomebar (bug 1219754); rs=mak
This commit is contained in:
Родитель
2f425d9745
Коммит
362b7a3220
|
@ -71,7 +71,7 @@ const FRECENCY_DEFAULT = 1000;
|
||||||
// Remote matches are appended when local matches are below a given frecency
|
// Remote matches are appended when local matches are below a given frecency
|
||||||
// threshold (FRECENCY_DEFAULT) as soon as they arrive. However we'll
|
// threshold (FRECENCY_DEFAULT) as soon as they arrive. However we'll
|
||||||
// always try to have at least MINIMUM_LOCAL_MATCHES local matches.
|
// 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.
|
// A regex that matches "single word" hostnames for whitelisting purposes.
|
||||||
// The hostname will already have been checked for general validity, so we
|
// The hostname will already have been checked for general validity, so we
|
||||||
|
|
|
@ -379,6 +379,8 @@ add_task(function* mixup_frecency() {
|
||||||
style: [ "bookmark" ] },
|
style: [ "bookmark" ] },
|
||||||
{ uri: NetUtil.newURI("http://example.com/lo4"),
|
{ uri: NetUtil.newURI("http://example.com/lo4"),
|
||||||
title: "low frecency 4" },
|
title: "low frecency 4" },
|
||||||
|
{ uri: NetUtil.newURI("http://example.com/lo3"),
|
||||||
|
title: "low frecency 3" },
|
||||||
{
|
{
|
||||||
uri: makeActionURI(("searchengine"), {
|
uri: makeActionURI(("searchengine"), {
|
||||||
engineName: ENGINE_NAME,
|
engineName: ENGINE_NAME,
|
||||||
|
@ -401,8 +403,6 @@ add_task(function* mixup_frecency() {
|
||||||
style: ["action", "searchengine"],
|
style: ["action", "searchengine"],
|
||||||
icon: "",
|
icon: "",
|
||||||
},
|
},
|
||||||
{ uri: NetUtil.newURI("http://example.com/lo3"),
|
|
||||||
title: "low frecency 3" },
|
|
||||||
{ uri: NetUtil.newURI("http://example.com/lo2"),
|
{ uri: NetUtil.newURI("http://example.com/lo2"),
|
||||||
title: "low frecency 2" },
|
title: "low frecency 2" },
|
||||||
{ uri: NetUtil.newURI("http://example.com/lo1"),
|
{ uri: NetUtil.newURI("http://example.com/lo1"),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче