mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 20:42:49 +00:00
Bug 1075549 - Firefox needs a restart in order to update the default search engine from the "<term> - Search with <engine>" string. r=mak
--HG-- extra : transplant_source : k%FA%3B%F8%EDH2%9B%86%86%40%F9%97%DF%8F%81jY%E6C
This commit is contained in:
parent
06b60a952e
commit
1ecc8be3e2
@ -64,6 +64,7 @@ const SearchAutocompleteProviderInternal = {
|
||||
case "engine-added":
|
||||
case "engine-changed":
|
||||
case "engine-removed":
|
||||
case "engine-current":
|
||||
this._refresh();
|
||||
}
|
||||
},
|
||||
|
@ -31,5 +31,17 @@ add_task(function*() {
|
||||
matches: [ { uri: makeActionURI("searchengine", {engineName: "MozSearch", input: "mozzarella cheese", searchQuery: "mozzarella cheese"}), title: "MozSearch" }, ]
|
||||
});
|
||||
|
||||
do_log_info("search engine, after current engine has changed");
|
||||
Services.search.addEngineWithDetails("MozSearch2", "", "", "", "GET",
|
||||
"http://s.example.com/search2");
|
||||
engine = Services.search.getEngineByName("MozSearch2");
|
||||
notEqual(Services.search.currentEngine, engine, "New engine shouldn't be the current engine yet");
|
||||
Services.search.currentEngine = engine;
|
||||
yield check_autocomplete({
|
||||
search: "mozilla",
|
||||
searchParam: "enable-actions",
|
||||
matches: [ { uri: makeActionURI("searchengine", {engineName: "MozSearch2", input: "mozilla", searchQuery: "mozilla"}), title: "MozSearch2" }, ]
|
||||
});
|
||||
|
||||
yield cleanup();
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user