Originating message is not selected when opened in conversation, which causes other problems as well.
Categories
(Thunderbird :: Search, defect)
Tracking
(thunderbird_esr115+ fixed, thunderbird120+ fixed)
People
(Reporter: wsmwk, Assigned: welpy-cw)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
697.19 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr115+
|
Details | Review |
- do global search on something that returns > 1 messages
- do show results as list
- right click on message and pick open in conversation
- ctrl+A to select all (do not expand the collapsed thread)
- hit delete
- expand the thread - do not click on any messages
- do ctrl+a
- hit delete
- click on one message and do ctrl+a
- hit delete - all selected messages are deleted
Actual results
At step 5 nothing is deleted. I would have expected the top message to be deleted
At step 8 nothing is deleted. I would have expected al messages to be deleted
Reporter | ||
Comment 1•2 months ago
|
||
Aureliano, are you able to reproduce this using version 115?
Assignee | ||
Comment 2•2 months ago
|
||
This affects not only the conversation view, but other synthetic views are as well. Try [Ctrl]+[a] right after "Show results as list" in step 2: Error console fills up, right click shows a convoluted context menu.
The reason for all this is that there is no current index set when the view is opened, but gDBView.hdrForFirstSelectedMessage
needs it to work in synthetic views, see source.
I suggest the following patch, which also fixes a regression from version 102. When opened in a conversation, the originating message is selected and displayed. In other synthetic views the current index is set without actually selecting anything.
Assignee | ||
Comment 3•2 months ago
|
||
This restores the way it was done in version 102 and before. Also sets the current index of any
other synthetic view to prevent nsMsgSearchDBView::GetHdrForFirstSelectedMessage from failing.
Updated•2 months ago
|
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Updated•1 month ago
|
Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/4c9fb539ab47
Select the initial message when opened in conversation. r=mkmelin
Reporter | ||
Updated•1 month ago
|
Comment 8•1 month ago
|
||
Unfortunately tests are failing (I think) due to this. https://treeherder.mozilla.org/jobs?repo=comm-central&selectedTaskRun=Kn6_1kHpQoCBioE8qxoR_g.0
Running with ./mach test --verify --headless comm/mail/base/test/browser/browser_mailTabsAndWindows.js
fails pretty soon for me locally. With the patch backed out it succeeds.
Comment 9•1 month ago
|
||
Assignee | ||
Updated•1 month ago
|
Comment 10•1 month ago
|
||
Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/168ff8d9bb14
Select the initial message when opened in conversation. r=mkmelin
Assignee | ||
Updated•1 month ago
|
Reporter | ||
Comment 12•1 month ago
|
||
I should probably test this.
Reporter | ||
Comment 13•1 month ago
|
||
Comment on attachment 9359818 [details]
Bug 1856266 - Select the initial message when opened in conversation. r=mkmelin
[Triage Comment]
Approved for beta
Comment 14•1 month ago
|
||
bugherder uplift |
Thunderbird 120.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/c99f602d294f
Reporter | ||
Comment 15•28 days ago
•
|
||
With nightly 11-08 behavior does not match comment 0 because after step 3 the conversation is not collapsed as indicated for step 4**. But at step 5 the delete still fails, if I first collapse it.
Uncaught : Component returned failure code: 0x80550018 [nsIMsgDBView.hdrForFirstSelectedMessage]
folder chrome://messenger/content/mailCommon.js:484
canMove chrome://messenger/content/mailCommon.js:492
isCommandEnabled chrome://messenger/content/mailCommon.js:650
<anonymous> chrome://messenger/content/about3Pane.js:6503
isCommandEnabled chrome://messenger/content/mailCommon.js:438
getEnabledControllerForCommand chrome://messenger/content/globalOverlay.js:49
goDoCommand chrome://messenger/content/globalOverlay.js:96
oncommand chrome://messenger/content/messenger.xhtml:1
mailCommon.js:484
03:40:07.620
An error occurred executing the cmd_delete command: [Exception... "Component returned failure code: 0x80550018 [nsIMsgDBView.hdrForFirstSelectedMessage]" nsresult: "0x80550018 (<unknown>)" location: "JS frame :: chrome://messenger/content/mailCommon.js :: folder :: line 484" data: no]
** Also, On beta 120.0b4 and b5, I'm not able to collapse the thread at all, which is strange and a possible regression.
Assignee | ||
Comment 16•28 days ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #15)
With nightly 11-08 behavior does not match comment 0 because after step 3 the conversation is not collapsed is indicated for step 4**. But at step 5 the delete still fails, if I first collapse it.
That's really strange. I couldn't reproduce this with the latest comm-central build. Had the global indexer already completed its index?
** Also, On beta 120.0b4 and b5, I'm not able to collapse the thread at all, which is strange and a possible regression.
Do you mean that clicking on the v
has no effect, or that there is no v
in the first place? I have seen the latter sometimes in unified folders lately, but I have no idea what the reason might be ...
Reporter | ||
Comment 17•28 days ago
|
||
(In reply to Hartmut Welpmann [:welpy-cw] from comment #16)
(In reply to Wayne Mery (:wsmwk) from comment #15)
With nightly 11-08 behavior does not match comment 0 because after step 3 the conversation is not collapsed is indicated for step 4**. But at step 5 the delete still fails, if I first collapse it.
That's really strange. I couldn't reproduce this with the latest comm-central build. Had the global indexer already completed its index?
They are old messages, so should be fully indexed
** Also, On beta 120.0b4 and b5, I'm not able to collapse the thread at all, which is strange and a possible regression.
Do you mean that clicking on the
v
has no effect, or that there is nov
in the first place? I have seen the latter sometimes in unified folders lately, but I have no idea what the reason might be ...
v
is missing, no widget to collapse or expand
Assignee | ||
Comment 18•28 days ago
|
||
Okay, now I have seen it once, too, but I can't reproduce it reliably. In one case, just collapsing the thread gave these error messages, on another occasion they appeared right after the thread was deleted. Another problem: The message pane never seems to be updated accordingly, so switching back to an empty conversation view produces these error messages as well.
So unfortunately my patch does not cover all problems regarding deletion of messages in a conversation view. As it does solve the problem reported in the (not entirely) duplicates, I would suggest to let this go on and defer solving the deletion intricacies to a later patch.
Assignee | ||
Comment 19•19 days ago
|
||
Comment on attachment 9359818 [details]
Bug 1856266 - Select the initial message when opened in conversation. r=mkmelin
[Approval Request Comment]
User impact if declined: User cannot identify the message they opened the conversation from.
Testing completed (on c-c, etc.): c-c and beta
Risk to taking this patch (and alternatives if risky): Low. The regressions found in testing are not directly caused by this patch.
Reporter | ||
Comment 20•19 days ago
|
||
Comment on attachment 9359818 [details]
Bug 1856266 - Select the initial message when opened in conversation. r=mkmelin
[Triage Comment]
Approved for esr115
Thanks for the risk assessment
Comment 21•18 days ago
|
||
bugherder uplift |
Thunderbird 115.5.0:
https://hg.mozilla.org/releases/comm-esr115/rev/fd504e4cceac
Description
•