Bug 1444426 - Remove the 'Automatically update search engines' option from preferences as it is confusing and doesn't fully apply now. r=mikedeboer,fluent-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D55859

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2019-12-05 13:56:18 +00:00
Родитель 60e0566e34
Коммит 2771a16621
3 изменённых файлов: 0 добавлений и 33 удалений

Просмотреть файл

@ -554,9 +554,6 @@
preference="app.update.service.enabled"/> preference="app.update.service.enabled"/>
#endif #endif
#endif #endif
<checkbox id="enableSearchUpdate"
data-l10n-id="update-enable-search-update"
preference="browser.search.update"/>
</groupbox> </groupbox>
<hbox id="performanceCategory" <hbox id="performanceCategory"

Просмотреть файл

@ -77,10 +77,6 @@ const mockUpdateManager = {
], ],
}; };
function resetPreferences() {
Services.prefs.clearUserPref("browser.search.update");
}
function formatInstallDate(sec) { function formatInstallDate(sec) {
var date = new Date(sec); var date = new Date(sec);
const dtOptions = { const dtOptions = {
@ -94,28 +90,6 @@ function formatInstallDate(sec) {
return date.toLocaleString(undefined, dtOptions); return date.toLocaleString(undefined, dtOptions);
} }
registerCleanupFunction(resetPreferences);
add_task(async function() {
await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
resetPreferences();
Services.prefs.setBoolPref("browser.search.update", false);
let doc = gBrowser.selectedBrowser.contentDocument;
let enableSearchUpdate = doc.getElementById("enableSearchUpdate");
is_element_visible(
enableSearchUpdate,
"Check search update preference is visible"
);
// Ensure that the update pref dialog reflects the actual pref value.
ok(!enableSearchUpdate.checked, "Ensure search updates are disabled");
Services.prefs.setBoolPref("browser.search.update", true);
ok(enableSearchUpdate.checked, "Ensure search updates are enabled");
gBrowser.removeCurrentTab();
});
add_task(async function() { add_task(async function() {
await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true }); await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
let doc = gBrowser.selectedBrowser.contentDocument; let doc = gBrowser.selectedBrowser.contentDocument;

Просмотреть файл

@ -429,10 +429,6 @@ update-application-use-service =
.label = Use a background service to install updates .label = Use a background service to install updates
.accesskey = b .accesskey = b
update-enable-search-update =
.label = Automatically update search engines
.accesskey = e
update-setting-write-failure-title = Error saving Update preferences update-setting-write-failure-title = Error saving Update preferences
# Variables: # Variables: