From d02390ae7286b9263426c9fe4e266d8dc79b7bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 22 Mar 2018 23:33:40 +0100 Subject: [PATCH] Bug 1448173: Remove stylo about:support stuff. r=xidorn Summary: I missed them while removing --enable-stylo. Reviewers: xidorn Bug #: 1448173 Differential Revision: https://phabricator.services.mozilla.com/D793 MozReview-Commit-ID: s8WwyT2aql --- toolkit/content/aboutSupport.js | 22 ------------------- toolkit/content/aboutSupport.xhtml | 9 -------- .../chrome/global/aboutSupport.properties | 7 ------ 3 files changed, 38 deletions(-) diff --git a/toolkit/content/aboutSupport.js b/toolkit/content/aboutSupport.js index f3e9104a68d0..8621c5f7aafd 100644 --- a/toolkit/content/aboutSupport.js +++ b/toolkit/content/aboutSupport.js @@ -79,28 +79,6 @@ var snapshotFormatters = { $("contentprocesses-row").hidden = true; } - function getReasonStringName(resultValue, defaultValue) { - if (resultValue != defaultValue) { - return resultValue ? "enabledByUser" : "disabledByUser"; - } - return resultValue ? "enabledByDefault" : "disabledByDefault"; - } - let styloReason; - let styloChromeReason; - if (!data.styloBuild) { - styloReason = "disabledByBuild"; - styloChromeReason = "disabledByBuild"; - } else { - styloReason = getReasonStringName(data.styloResult, data.styloDefault); - styloChromeReason = getReasonStringName(data.styloChromeResult, - data.styloChromeDefault); - } - styloReason = strings.GetStringFromName(styloReason); - styloChromeReason = strings.GetStringFromName(styloChromeReason); - $("stylo-box").textContent = - `content = ${data.styloResult} (${styloReason}), ` + - `chrome = ${data.styloChromeResult} (${styloChromeReason})`; - if (Services.policies) { let policiesText = ""; switch (data.policiesStatus) { diff --git a/toolkit/content/aboutSupport.xhtml b/toolkit/content/aboutSupport.xhtml index 67f15c4436fe..34daa72044a8 100644 --- a/toolkit/content/aboutSupport.xhtml +++ b/toolkit/content/aboutSupport.xhtml @@ -237,15 +237,6 @@ - - - Stylo - - - - - - &aboutSupport.enterprisePolicies; diff --git a/toolkit/locales/en-US/chrome/global/aboutSupport.properties b/toolkit/locales/en-US/chrome/global/aboutSupport.properties index 8264910a43d9..d3ef9821559b 100644 --- a/toolkit/locales/en-US/chrome/global/aboutSupport.properties +++ b/toolkit/locales/en-US/chrome/global/aboutSupport.properties @@ -153,13 +153,6 @@ autoscrollEnabled = autoscroll enabled wheelWarning = async wheel input disabled due to unsupported pref: %S touchWarning = async touch input disabled due to unsupported pref: %S -# LOCALIZATION NOTE Strings explaining why a feature is or is not available. -disabledByBuild = disabled by build -enabledByDefault = enabled by default -disabledByDefault = disabled by default -enabledByUser = enabled by user -disabledByUser = disabled by user - # LOCALIZATION NOTE Strings representing the status of the Enterprise Policies engine. policies.inactive = Inactive policies.active = Active