Closed Bug 1222189 Opened 9 years ago Closed 8 years ago

Snooze unit dropdown menu items have no label, fix usage of getElementsByTagName due to Bug 492933

Categories

(Calendar :: General, defect)

Lightning 4.6
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mschuste, Assigned: ssitter)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20151103023037

Steps to reproduce:

Win 10 64bit, TB 45.0a1 (2015-11-05), Lighting 4.7a1

Adjusting the "Snooze (All) for" time of the Reminder dialog box does not populate the drop-down box with "Minutes, Hours, Days" for a custom time not listed.

Click on either "Snooze for" or "Snooze All for" buttons.
Adjust the time for something other than the defaults
Hover mouse over the drop-down box to select Minutes, Hours, Days



Actual results:

Drop-down is not populated with Minutes/Hours/Days
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
The Lightning home page tells us to report bugs to Bugzilla.
Attached image Drop-down not populated β€”
Confirmed using Lightning 4.6a2 in Thunderbird 44.0a2.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Version: unspecified → Lightning 4.6
From a quick look it seems that in file calendar-alarm-widget.xml, method updateAccessibleName() the last for-loop is never entered and therefore the label of the xul:menuitems is never set: https://dxr.mozilla.org/comm-central/source/calendar/base/content/widgets/calendar-alarm-widget.xml#345

It looks like getElementsByTagName() doesn't return values. Searching for getElementsByTagName resulted in Bug 492933 that changed behavior in mozilla44. I therefore assume this is the cause for the regression.
Attached patch fix usage of getElementsByTagName (obsolete) β€” β€” Splinter Review
Updated according to <https://www.fxsitecompat.com/en-US/docs/2015/getelementsbytagname-now-matches-localname-instead-of-tagname/> and now it works for me.
Assignee: nobody → ssitter
Status: NEW → ASSIGNED
Attachment #8684429 - Flags: review?(philipp)
Attachment #8684429 - Flags: approval-calendar-aurora?(philipp)
OS: Windows 10 → All
Hardware: x86_64 → All
(In reply to Stefan Sitter from comment #5)
> Created attachment 8684429 [details] [diff] [review]
> fix usage of getElementsByTagName
> 
> Updated according to
> <https://www.fxsitecompat.com/en-US/docs/2015/getelementsbytagname-now-
> matches-localname-instead-of-tagname/> and now it works for me.

Not sure what is meant by "...and now it works for me?"  I upgraded to 45.0a1 and still have the problem.
After applying the attached patch the drop-down menu entries have content/labels again. 
Mark, are you saying it doesn't work for you after applying the attached patch?
Stefan, I have to admit I do not know what the process is to add the attachment to TB to update it.  Can you point me in the right direction?

A sidebar: Do you know if there has been any activity on another of my bug reports: https://bugzilla.mozilla.org/show_bug.cgi?id=1222165

Thanks
Comment on attachment 8684429 [details] [diff] [review]
fix usage of getElementsByTagName

Matthew, maybe you can take over the review from Philipp? I just want this feature regression fixed before the next merge to beta branch.
Attachment #8684429 - Flags: review?(matthew.mecca)
Comment on attachment 8684429 [details] [diff] [review]
fix usage of getElementsByTagName

Looks good to me. r=mmecca
Attachment #8684429 - Flags: review?(matthew.mecca) → review+
Pushed to https://hg.mozilla.org/comm-central/rev/65216fa64f21
Whiteboard: [leave open for comm-aurora]
Target Milestone: --- → 4.7
Attachment #8684429 - Flags: review?(philipp)
Philipp, I'd like to ask you to take a look before the next branch uplift.
Flags: needinfo?(philipp)
Comment on attachment 8684429 [details] [diff] [review]
fix usage of getElementsByTagName

Review of attachment 8684429 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me, thanks for taking over the review.
Attachment #8684429 - Flags: approval-calendar-aurora?(philipp) → approval-calendar-aurora+
Flags: needinfo?(philipp)
Thanks.
Pushed to https://hg.mozilla.org/releases/comm-aurora/rev/595e301bf6b7
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [leave open for comm-aurora]
Target Milestone: 4.7 → 4.6
Thank You all for correcting this.
Thank you for reporting the problem. Please keep testing nightly builds and don't hesitate to report problems that you find.
Bug 492933 got backed out on all branches and therefore we have to revert the Lightning change on all branches down to 4.6 to fix it again.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blocks: ltn47
Attached patch backout previous fix β€” β€” Splinter Review
Attachment #8714027 - Flags: review?(philipp)
Attachment #8714027 - Flags: approval-calendar-beta?(philipp)
Attachment #8714027 - Flags: approval-calendar-aurora?(philipp)
Attachment #8684429 - Flags: checkin+
Depends on: 492933
Comment on attachment 8714027 [details] [diff] [review]
backout previous fix

Review of attachment 8714027 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for keeping an eye on that bug! Can we just switch to querySelector or something that does not care about namespaces?

Anyway, as you already have the patch, I'm ok with taking it!
Attachment #8714027 - Flags: review?(philipp)
Attachment #8714027 - Flags: review+
Attachment #8714027 - Flags: approval-calendar-beta?(philipp)
Attachment #8714027 - Flags: approval-calendar-beta+
Attachment #8714027 - Flags: approval-calendar-aurora?(philipp)
Attachment #8714027 - Flags: approval-calendar-aurora+
Summary: Lightning "Reminder" dialog "Snooze (All) for" drop-down for adjusting the reminder is not working → Snooze unit dropdown menu items have no label, fix usage of getElementsByTagName due to Bug 492933
Attachment #8684429 - Attachment is obsolete: true
Status: REOPENED → ASSIGNED
Pushed to comm-beta / Lightning 4.7: https://hg.mozilla.org/releases/comm-beta/rev/695604cffaa4

Pushed to comm-aurora / Lightning 4.8: https://hg.mozilla.org/releases/comm-aurora/rev/c608661fb128

Leave open for comm-central / Lightning 4.9.
Keywords: checkin-needed
Whiteboard: [checkin-needed comm-central]
Target Milestone: 4.6 → 4.7
https://hg.mozilla.org/comm-central/rev/0ad909848849967c10930861b8d49a6847d54c99
Bug 1222189 - Revert fix because getElementsByTagName change was backed out. r=Fallen
Status: ASSIGNED → RESOLVED
Closed: 9 years ago8 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [checkin-needed comm-central]
Why not just use getElementsByTagNameNS ?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: