Backed out changeset df74c724a47d (bug 1428402) for causing bc failures in toolkit/modules/tests/browser/browser_Troubleshoot.js CLOSED TREE

This commit is contained in:
Sandor Molnar 2023-07-18 14:29:57 +03:00
Родитель 7e6847ff4f
Коммит 1c7a1914d5
5 изменённых файлов: 0 добавлений и 68 удалений

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

@ -236,19 +236,6 @@ var snapshotFormatters = {
formatHumanReadableBytes($("disk-available-box"), data.diskAvailableBytes);
},
async legacyUserStylesheets(legacyUserStylesheets) {
$("legacyUserStylesheets-enabled").textContent =
legacyUserStylesheets.active;
$("legacyUserStylesheets-types").textContent =
new Intl.ListFormat(undefined, { style: "short", type: "unit" }).format(
legacyUserStylesheets.types
) ||
document.l10n.setAttributes(
$("legacyUserStylesheets-types"),
"legacy-user-stylesheets-no-stylesheets-found"
);
},
crashes(data) {
if (!AppConstants.MOZ_CRASHREPORTER) {
return;

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

@ -439,28 +439,6 @@
<!-- - - - - - - - - - - - - - - - - - - - - -->
<h2 class="major-section" id="legacyUserStylesheets" data-l10n-id="legacy-user-stylesheets-title"/>
<table>
<tbody id="legacyUserStylesheets-info-tbody">
<tr>
<th class="column" data-l10n-id="legacy-user-stylesheets-enabled"/>
<td id="legacyUserStylesheets-enabled">
</td>
</tr>
<tr>
<th class="column" data-l10n-id="legacy-user-stylesheets-stylesheet-types"/>
<td id="legacyUserStylesheets-types">
</td>
</tr>
</tbody>
</table>
<!-- - - - - - - - - - - - - - - - - - - - - -->
<h2 class="major-section" id="graphics" data-l10n-id="graphics-title"/>
<table>

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

@ -19,10 +19,6 @@ support-addons-type = Type
support-addons-enabled = Enabled
support-addons-version = Version
support-addons-id = ID
legacy-user-stylesheets-title = Legacy User Stylesheets
legacy-user-stylesheets-enabled = Active
legacy-user-stylesheets-stylesheet-types = Stylesheets
legacy-user-stylesheets-no-stylesheets-found = No stylesheets found
security-software-title = Security Software
security-software-type = Type
security-software-name = Name

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

@ -453,25 +453,6 @@ var dataProviders = {
);
},
async legacyUserStylesheets(done) {
if (AppConstants.platform == "android") {
done({ active: false, types: [] });
return;
}
let active = Services.prefs.getBoolPref(
"toolkit.legacyUserProfileCustomizations.stylesheets"
);
let types = [];
for (let name of ["userChrome.css", "userContent.css"]) {
let path = PathUtils.join(PathUtils.profileDir, "chrome", name);
if (await IOUtils.exists(path)) {
types.push(name);
}
}
done({ active, types });
},
async environmentVariables(done) {
let Subprocess;
try {

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

@ -1236,16 +1236,6 @@ const SNAPSHOT_SCHEMA = {
},
},
},
legacyUserStylesheets: {
active: {
required: true,
type: "boolean",
},
types: {
required: true,
type: "array",
},
},
},
};