Backed out changeset 76c5afdda762 (bug 1830679) for causing xpcshell failures on test_VariablesView_filtering-without-controller.js. CLOSED TREE

This commit is contained in:
Iulian Moraru
2023-06-12 22:03:43 +03:00
parent b96ac5edfa
commit ff572127aa
38 changed files with 190 additions and 165 deletions

View File

@@ -1940,7 +1940,7 @@ var CustomizableUIInternal = {
}
if (aWidget.l10nId) {
aDocument.l10n.setAttributes(node, aWidget.l10nId);
node.setAttribute("data-l10n-id", aWidget.l10nId);
if (button != node) {
// This is probably a "button-and-view" widget, such as the Profiler
// button. In that case, "node" is the "toolbaritem" container, and
@@ -1948,7 +1948,7 @@ var CustomizableUIInternal = {
// In this case, the values on the "node" is used in the Customize
// view, as well as the tooltips over both buttons; the values on the
// "button" are used in the overflow menu.
aDocument.l10n.setAttributes(button, aWidget.l10nId);
button.setAttribute("data-l10n-id", aWidget.l10nId);
}
if (shortcut) {
@@ -4837,7 +4837,7 @@ export var CustomizableUI = {
// Sentence case in the AppMenu / panels.
let l10nId = menuChild.getAttribute("appmenu-data-l10n-id");
if (l10nId) {
doc.l10n.setAttributes(subviewItem, l10nId);
subviewItem.setAttribute("data-l10n-id", l10nId);
}
fragment.appendChild(subviewItem);