Closed
Bug 1222189
Opened 9 years ago
Closed 9 years ago
Snooze unit dropdown menu items have no label, fix usage of getElementsByTagName due to Bug 492933
Categories
(Calendar :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
4.7
People
(Reporter: mschuste, Assigned: ssitter)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
3.17 MB,
image/jpeg
|
Details | |
1.45 KB,
patch
|
Fallen
:
review+
Fallen
:
approval-calendar-aurora+
Fallen
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Updated•9 years ago
|
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Reporter | ||
Comment 1•9 years ago
|
||
The Lightning home page tells us to report bugs to Bugzilla.
Reporter | ||
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
Confirmed using Lightning 4.6a2 in Thunderbird 44.0a2.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Version: unspecified → Lightning 4.6
Assignee | ||
Comment 4•9 years ago
|
||
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.
Assignee | ||
Comment 5•9 years ago
|
||
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)
Assignee | ||
Updated•9 years ago
|
OS: Windows 10 → All
Hardware: x86_64 → All
Reporter | ||
Comment 6•9 years ago
|
||
(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.
Assignee | ||
Comment 7•9 years ago
|
||
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?
Reporter | ||
Comment 8•9 years ago
|
||
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
Assignee | ||
Comment 9•9 years ago
|
||
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 10•9 years ago
|
||
Comment on attachment 8684429 [details] [diff] [review]
fix usage of getElementsByTagName
Looks good to me. r=mmecca
Attachment #8684429 -
Flags: review?(matthew.mecca) → review+
Assignee | ||
Comment 11•9 years ago
|
||
Whiteboard: [leave open for comm-aurora]
Target Milestone: --- → 4.7
Assignee | ||
Updated•9 years ago
|
Attachment #8684429 -
Flags: review?(philipp)
Assignee | ||
Comment 12•9 years ago
|
||
Philipp, I'd like to ask you to take a look before the next branch uplift.
Flags: needinfo?(philipp)
Comment 13•9 years ago
|
||
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+
Updated•9 years ago
|
Flags: needinfo?(philipp)
Assignee | ||
Comment 14•9 years ago
|
||
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
Reporter | ||
Comment 15•9 years ago
|
||
Thank You all for correcting this.
Assignee | ||
Comment 16•9 years ago
|
||
Thank you for reporting the problem. Please keep testing nightly builds and don't hesitate to report problems that you find.
Assignee | ||
Comment 17•9 years ago
|
||
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 → ---
Assignee | ||
Comment 19•9 years ago
|
||
Attachment #8714027 -
Flags: review?(philipp)
Attachment #8714027 -
Flags: approval-calendar-beta?(philipp)
Attachment #8714027 -
Flags: approval-calendar-aurora?(philipp)
Assignee | ||
Updated•9 years ago
|
Attachment #8684429 -
Flags: checkin+
Comment 20•9 years ago
|
||
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+
Assignee | ||
Updated•9 years ago
|
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
Assignee | ||
Updated•9 years ago
|
Attachment #8684429 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 21•9 years ago
|
||
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.
Comment 22•9 years ago
|
||
https://hg.mozilla.org/comm-central/rev/0ad909848849967c10930861b8d49a6847d54c99
Bug 1222189 - Revert fix because getElementsByTagName change was backed out. r=Fallen
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago → 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [checkin-needed comm-central]
![]() |
||
Comment 23•9 years ago
|
||
Why not just use getElementsByTagNameNS ?
You need to log in
before you can comment on or make changes to this bug.
Description
•