Bug 1222189 - Backout previous getElementsByTagName fix to restore snooze unit dropdown menu after backout of Bug 492933 r=philipp a=philipp
authorStefan Sitter <ssitter@gmail.com>
Mon, 01 Feb 2016 18:49:26 +0100
changeset 26688 695604cffaa4cafc3a8fdb33ed21055d3caf5062
parent 26687 d3fbc1e376010128470e1ea87b78ff0d7d8945fd
child 26689 0e667df015f6acfb5670b1e039d4d218acbda36b
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp, philipp
bugs1222189, 492933
Bug 1222189 - Backout previous getElementsByTagName fix to restore snooze unit dropdown menu after backout of Bug 492933 r=philipp a=philipp
calendar/base/content/widgets/calendar-alarm-widget.xml
--- a/calendar/base/content/widgets/calendar-alarm-widget.xml
+++ b/calendar/base/content/widgets/calendar-alarm-widget.xml
@@ -336,17 +336,17 @@
           let unitPlural = PluralForm.get(unitValue.value, pluralString)
                                      .replace("#1", unitValue.value);
 
           let accessibleString = cal.calGetString("calendar-alarms",
                                                   "reminderSnoozeOkA11y",
                                                   [unitPlural]);
           okButton.setAttribute("aria-label", accessibleString);
 
-          let items = unitPopup.getElementsByTagName("menuitem");
+          let items = unitPopup.getElementsByTagName("xul:menuitem");
           for (let menuItem of items) {
               pluralString = cal.calGetString("calendar", unitName(menuItem));
               menuItem.label = PluralForm.get(unitValue.value, pluralString)
                                          .replace("#1", "").trim();
           }
         ]]></body>
       </method>
     </implementation>