зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1453480 - Update Preferences to use fluent-dom 0.2.0 API. r=stas
MozReview-Commit-ID: 4CFnjf9VFLz --HG-- extra : source : a3c36fa7ac0c831c4412652ba1a6a8d57497c63d
This commit is contained in:
Родитель
2dc52ab911
Коммит
3cdc3d9fef
|
@ -483,7 +483,7 @@ var gSearchResultsPane = {
|
|||
return null;
|
||||
}
|
||||
if (refAttr) {
|
||||
let attr = msg.attrs.find(a => a.name === refAttr);
|
||||
let attr = msg.attributes && msg.attributes.find(a => a.name === refAttr);
|
||||
if (!attr) {
|
||||
console.error(`Missing search l10n id "${refId}.${refAttr}"`);
|
||||
return null;
|
||||
|
|
|
@ -39,7 +39,7 @@ add_task(async function() {
|
|||
|
||||
Assert.deepEqual(msg, {
|
||||
value: null,
|
||||
attrs: [
|
||||
attributes: [
|
||||
{name: "label", value: elem.getAttribute("label")}
|
||||
]
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче