Bug 1889687 - Ensure new Translations settings is hidden form search r=Gijs,settings-reviewers
Ensures that the new Translations Settings subpage has the `data-hidden-from-search` attribute so that stubbed content is not discoverable accidentally. Differential Revision: https://phabricator.services.mozilla.com/D206669
This commit is contained in:
@@ -1918,6 +1918,11 @@ var gMainPane = {
|
||||
if (
|
||||
Services.prefs.getBoolPref("browser.translations.newSettingsUI.enable")
|
||||
) {
|
||||
const translationsSettings = document.getElementById(
|
||||
"translations-settings-page"
|
||||
);
|
||||
translationsSettings.setAttribute("data-hidden-from-search", "false");
|
||||
translationsSettings.hidden = false;
|
||||
gotoPref("translations");
|
||||
} else {
|
||||
gSubDialog.open(
|
||||
|
||||
Reference in New Issue
Block a user