Bug 1767846 - Remove MSU Reader Mode improvements pref. r=mtigley

Differential Revision: https://phabricator.services.mozilla.com/D148063
This commit is contained in:
Niklas Baumgardner 2022-06-02 14:30:56 +00:00
Родитель 1ec54ee02b
Коммит 78d135ef5a
4 изменённых файлов: 0 добавлений и 28 удалений

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

@ -4033,9 +4033,6 @@ pref("reader.has_used_toolbar", false);
// Whether to use a vertical or horizontal toolbar.
pref("reader.toolbar.vertical", true);
// Whether or not we display additional UI (such as the full screen, reset to default, and browser theme buttons).
pref("reader.improvements_H12022.enabled", false);
#if !defined(ANDROID)
pref("narrate.enabled", true);
#else

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

@ -176,23 +176,6 @@ var AboutReader = function(
});
let colorScheme = Services.prefs.getCharPref("reader.color_scheme");
// If the UI improvements are not enabled, we will filter "Auto" from
// the list of color schemes available and ensure the current preference isn't set to
// "Auto"
this.readerImprovementsEnabled = Services.prefs.getBoolPref(
"reader.improvements_H12022.enabled",
false
);
if (!this.readerImprovementsEnabled) {
colorSchemeOptions = colorSchemeOptions.filter(function(value) {
return value.name !== "Auto";
});
if (Services.prefs.getCharPref("reader.color_scheme") === "auto") {
colorScheme = "light";
}
}
this._setupSegmentedButton(
"color-scheme-buttons",
colorSchemeOptions,

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

@ -10,11 +10,6 @@ const TEST_PATH = getRootDirectory(gTestPath).replace(
);
async function testColorScheme(aPref, aExpectation) {
// Enable this preference so we can test the new behavior for the color scheme.
await SpecialPowers.pushPrefEnv({
set: [["reader.improvements_H12022.enabled", true]],
});
// Set the browser content theme to light or dark.
Services.prefs.setIntPref("browser.theme.content-theme", aPref);

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

@ -93,9 +93,6 @@ add_task(async function() {
* Test that the pocket button toggles the pocket popup successfully
*/
add_task(async function() {
await SpecialPowers.pushPrefEnv({
set: [["reader.improvements_H12022.enabled", true]],
});
await BrowserTestUtils.withNewTab(
TEST_PATH + "readerModeArticleShort.html",
async function(browser) {