Bug 1097106 - Disable Search Provider Top Suggestion feature. r=paolo

This commit is contained in:
Blair McBride 2014-11-24 11:57:03 +13:00
parent 7f561d3e2f
commit c6dcedd1ef
3 changed files with 8 additions and 1 deletions

View File

@ -17,7 +17,7 @@ const PREF_BRANCH = "browser.urlbar.";
const PREF_ENABLED = [ "autocomplete.enabled", true ];
const PREF_AUTOFILL = [ "autoFill", true ];
const PREF_AUTOFILL_TYPED = [ "autoFill.typed", true ];
const PREF_AUTOFILL_SEARCHENGINES = [ "autoFill.searchEngines", true ];
const PREF_AUTOFILL_SEARCHENGINES = [ "autoFill.searchEngines", false ];
const PREF_RESTYLESEARCHES = [ "restyleSearches", false ];
const PREF_DELAY = [ "delay", 50 ];
const PREF_BEHAVIOR = [ "matchBehavior", MATCH_BOUNDARY_ANYWHERE ];

View File

@ -31,6 +31,7 @@ add_task(function* test_trailing_space_noautofill() {
});
add_task(function* test_searchEngine_autofill() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", true);
Services.search.addEngineWithDetails("CakeSearch", "", "", "",
"GET", "http://cake.search/");
let engine = Services.search.getEngineByName("CakeSearch");
@ -48,6 +49,7 @@ add_task(function* test_searchEngine_autofill() {
});
add_task(function* test_searchEngine_prefix_space_noautofill() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", true);
Services.search.addEngineWithDetails("CupcakeSearch", "", "", "",
"GET", "http://cupcake.search/");
let engine = Services.search.getEngineByName("CupcakeSearch");
@ -65,6 +67,7 @@ add_task(function* test_searchEngine_prefix_space_noautofill() {
});
add_task(function* test_searchEngine_trailing_space_noautofill() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", true);
Services.search.addEngineWithDetails("BaconSearch", "", "", "",
"GET", "http://bacon.search/");
let engine = Services.search.getEngineByName("BaconSearch");
@ -82,6 +85,7 @@ add_task(function* test_searchEngine_trailing_space_noautofill() {
});
add_task(function* test_searchEngine_www_noautofill() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", true);
Services.search.addEngineWithDetails("HamSearch", "", "", "",
"GET", "http://ham.search/");
let engine = Services.search.getEngineByName("HamSearch");
@ -99,6 +103,7 @@ add_task(function* test_searchEngine_www_noautofill() {
});
add_task(function* test_searchEngine_different_scheme_noautofill() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", true);
Services.search.addEngineWithDetails("PieSearch", "", "", "",
"GET", "https://pie.search/");
let engine = Services.search.getEngineByName("PieSearch");
@ -116,6 +121,7 @@ add_task(function* test_searchEngine_different_scheme_noautofill() {
});
add_task(function* test_searchEngine_matching_prefix_autofill() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", true);
Services.search.addEngineWithDetails("BeanSearch", "", "", "",
"GET", "http://www.bean.search/");
let engine = Services.search.getEngineByName("BeanSearch");

View File

@ -38,6 +38,7 @@ function* addTestEngines(items) {
add_task(function* test_searchEngine_autoFill() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", true);
Services.search.addEngineWithDetails("MySearchEngine", "", "", "",
"GET", "http://my.search.com/");
let engine = Services.search.getEngineByName("MySearchEngine");