Skip to content

Commit 424473f

Browse files
amzyanggkatsev
authored andcommitted
Fix Smart Completions not work on Fx49 (#591)
Fixes #590
1 parent 2d6577d commit 424473f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

common/content/services.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ const Services = Module("services", {
1414
init: function () {
1515
this.classes = {};
1616
this.jsm = window.Services;
17+
let autoCompleteSearchQueryValue = "unifiedcomplete";
18+
if (this.jsm["vc"].compare(VERSION, "49") < 0) {
19+
autoCompleteSearchQueryValue = "history";
20+
}
1721
this.services = {
1822
"autoCompleteSearch": {
19-
class_: "@mozilla.org/autocomplete/search;1?name=history",
23+
class_: "@mozilla.org/autocomplete/search;1?name=" + autoCompleteSearchQueryValue,
2024
iface: Ci.nsIAutoCompleteSearch
2125
},
2226
"bookmarks": {

0 commit comments

Comments
 (0)