"File > Empty Trash" incorrectly displays "Empty <current folder>" in confirmation dialog title
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(thunderbird_esr6068+ fixed, thunderbird67 fixed, thunderbird68 fixed)
People
(Reporter: olivier, Assigned: aceman)
Details
Attachments
(2 files)
152.32 KB,
image/png
|
Details | |
3.83 KB,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/74.0.3729.108 Chrome/74.0.3729.108 Safari/537.36
Steps to reproduce:
(originally reported at https://support.mozilla.org/en-US/questions/1254659 but it's not an Ubuntu-specific issue as replies in that thread seem to imply)
- Select any folder under any account in the left pane (e.g. a folder named "Foo Bar")
- Open the file menu and click "Empty Trash"
- Observe that a confirmation dialog is displayed ("Delete all messages and subfolders in the Trash folder?")
Actual results:
The title of the dialog reads 'Empty "Foo Bar"'.
Expected results:
The title of the dialog should be 'Empty Trash'.
Updated•6 years ago
|
And which folder does it actually empty?
I think we did this, because we also use this to empty the junk folder. But the context menu item to empty Junk or Trash shows only on the Junk and Trash folders. Not that this main menu item is active on any folder, but picks up the name of the current folder (but this one won't be emptied), this would be a bug.
There is already a note about this weirdness in the code: https://searchfox.org/comm-central/source/mail/base/content/folderPane.js#2651 :)
Note that folder.emptyTrash() will look for a real trash folder anyway (server type dependent), it will not empty 'folder' unconditionally. So at least try to look for some real trash folder in the confirmation prompt.
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/7e7a8c180b0c
Ask for confirmation on the real trash folder if a non-trash folder was selected. r=jorgk
Updated•6 years ago
|
Comment 7•6 years ago
|
||
TB 67 beta 3:
https://hg.mozilla.org/releases/comm-beta/rev/006b4646c4f2e12645fcc5b6afd53da71d50da20
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Well, that patch doesn't apply to comm-esr60 at all.
Comment 9•5 years ago
|
||
TB 60.8 ESR:
https://hg.mozilla.org/releases/comm-esr60/rev/cf751a447cd83a52d0c046d4605c915ba400b26b
Description
•