Closed Bug 1498588 Opened 7 years ago Closed 7 years ago

Select all not working when Lightning enabled version 63 beta 1 released October 11th, 2018

Categories

(Calendar :: General, defect)

Lightning 6.5
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dennism2005, Assigned: darktrojan)

References

Details

Attachments

(1 file, 2 obsolete files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Steps to reproduce: Attempted to use Ctrl-A to select all messages in my Inbox. When it did not work I tried Edit/Select/All which didn't work either. I got the same results with other folders. Actual results: After Thunderbird 63 beta 1 released October 11th, 2018 was installed Ctrl-A or Edit/Select/All does not select all messages in a folder unless the Lightning extension is disabled. When I noticed the problem I ran Thunderbird with add-ons disabled and everything worked fine. By disabling add-ons one at a time I found Lightning was causing it. Expected results: All messages in the folder should have been selected with Ctrl-A or Edit/Select/All.
I can reproduce this on trunk. Thanks for reporting.
Flags: needinfo?(geoff)
Status: UNCONFIRMED → NEW
Component: Untriaged → Mail Window Front End
Ever confirmed: true
Oh boy, command controllers! My favourite how-is-that-supposed-to-work mystery. I have two ways of fixing this, one is a hack, and the other I prefer but I'm not sure if it breaks any number of unrelated things.
Flags: needinfo?(geoff)
Attached patch 1498588-cmd-selectall-1.diff (obsolete) โ€” โ€” Splinter Review
I think this is right for all commands handled by the calendar controller. I had a green Try run with this patch, but IMO that doesn't prove it's fault-free. Alternatively we could just hard-wire the specific case for cmd_selectAll.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9017369 - Flags: review?(philipp)
Comment on attachment 9017369 [details] [diff] [review] 1498588-cmd-selectall-1.diff Review of attachment 9017369 [details] [diff] [review]: ----------------------------------------------------------------- Not a fan of hard-wiring, if this improves the situation lets give it a try. ::: calendar/base/content/calendar-common-sets.js @@ +788,5 @@ > // we leave the current thread in order to re-enter the message loop. > > let tbController = top.DefaultController; > if (tbController) { > + calendarController.defaultController = document.getElementById("tabmail"); If we are using tabmail always here, might as well get rid of the tbController variable.
Attachment #9017369 - Flags: review?(philipp) → review+
Attached patch 1498588-cmd-selectall-2.diff (obsolete) โ€” โ€” Splinter Review
Good, that gets rid of the setTimeout too. I never did like that.
Attachment #9017369 - Attachment is obsolete: true
Attachment #9018082 - Flags: review+
Keywords: checkin-needed
Comment on attachment 9018082 [details] [diff] [review] 1498588-cmd-selectall-2.diff Review of attachment 9018082 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/base/content/calendar-common-sets.js @@ +784,5 @@ > // gets installed by thunderbird. Since we get called pretty early > // during startup we need to install the function below as a callback > // that periodically checks when the original thunderbird controller > // gets alive. Please note that setTimeout with a value of 0 means that > // we leave the current thread in order to re-enter the message loop. Can you adjust this comment as well, please.
Attached patch 1498588-cmd-selectall-3.diff โ€” โ€” Splinter Review
Yeah, oops, that comment's a load of garbage now.
Attachment #9018082 - Attachment is obsolete: true
Attachment #9018176 - Flags: review+
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/855ce13ec8f9 Pass commands on to the tabmail controller if calendar is not the active tab. r=philipp DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 64.0
Component: Mail Window Front End → General
Product: Thunderbird → Calendar
Target Milestone: Thunderbird 64.0 → 6.6
Version: 63 → Lightning 6.5
Attachment #9018176 - Flags: approval-calendar-beta?(philipp)
Comment on attachment 9018176 [details] [diff] [review] 1498588-cmd-selectall-3.diff Too late for 63/6.5 beta now.
Attachment #9018176 - Flags: approval-calendar-beta?(philipp)
64.0b1 allows select all but the Archive and Delete buttons are dimmed but do work.
Yes we know, thank you, that is bug 1501101.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: