зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1424343 - Stop migrating the browser.search.selectedEngine preference, r=adw.
This commit is contained in:
Родитель
37c9a0c332
Коммит
234a166e83
|
@ -1873,17 +1873,6 @@ BrowserGlue.prototype = {
|
|||
xulStore.removeValue(BROWSER_DOCURL, "TabsToolbar", "collapsed");
|
||||
}
|
||||
|
||||
if (currentUIVersion < 23) {
|
||||
const kSelectedEnginePref = "browser.search.selectedEngine";
|
||||
if (Services.prefs.prefHasUserValue(kSelectedEnginePref)) {
|
||||
try {
|
||||
let name = Services.prefs.getComplexValue(kSelectedEnginePref,
|
||||
Ci.nsIPrefLocalizedString).data;
|
||||
Services.search.currentEngine = Services.search.getEngineByName(name);
|
||||
} catch (ex) {}
|
||||
}
|
||||
}
|
||||
|
||||
if (currentUIVersion < 24) {
|
||||
// Reset homepage pref for users who have it set to start.mozilla.org
|
||||
// or google.com/firefox.
|
||||
|
|
Загрузка…
Ссылка в новой задаче