Bug 1472716 - Part 1 - Whitelist the "value" attribute for XUL localization. r=gandalf draft
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Tue, 10 Jul 2018 14:57:18 +0100
changeset 816056 af49686b874f071089f9efbc009adcdee2872a1c
parent 816055 8be7c63ea5c620641816664d9be81e58a912f9f3
child 816057 1aced307b5aeb140ad1304da533803cf12db8d1a
push id115732
push userpaolo.mozmail@amadzone.org
push dateTue, 10 Jul 2018 14:09:01 +0000
reviewersgandalf
bugs1472716
milestone63.0a1
Bug 1472716 - Part 1 - Whitelist the "value" attribute for XUL localization. r=gandalf MozReview-Commit-ID: Gv9da9rqOrL
intl/l10n/DOMLocalization.jsm
--- a/intl/l10n/DOMLocalization.jsm
+++ b/intl/l10n/DOMLocalization.jsm
@@ -53,20 +53,22 @@ const LOCALIZABLE_ATTRIBUTES = {
     optgroup: ["label"],
     option: ["label"],
     track: ["label"],
     img: ["alt"],
     textarea: ["placeholder"],
     th: ["abbr"]
   },
   "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul": {
+    description: ["value"],
     global: [
       "accesskey", "aria-label", "aria-valuetext", "aria-moz-hint", "label"
     ],
     key: ["key", "keycode"],
+    label: ["value"],
     textbox: ["placeholder"],
     toolbarbutton: ["tooltiptext"],
   }
 };
 
 
 /**
  * Translate an element.