In Thunderbird 115 and later, Options > Quote Message does not work when composing a reply from a message opened in a new tab
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr115 fixed)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr115 | --- | fixed |
People
(Reporter: earlgreypicard, Assigned: darktrojan)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr115+
|
Details | Review |
User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Thunderbird/115.5.1
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0 Thunderbird/122.0a1
Steps to Reproduce:
- Start Thunderbird and open a message in a new tab.
- Click the reply button on the opened message.
- Select "Options > Quote Message" in the compose window.
Actual results:
The message is not quoted and there is no change to the window. The same result occurs when opening the message in a new window and then composing a reply.
It works fine when I compose a reply directly from a message selected in the message list.
Expected results:
The message will be quoted by "Options > Quote Message".
Additional Information:
The following error appears in the error console.
An error occurred executing the cmd_quoteMessage command: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIMsgCompose.quoteMessage]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: chrome://messenger/content/messengercompose/MsgComposeCommands.js :: QuoteSelectedMessage :: line 1568" data: no] globalOverlay.js:102:13
Regression range:
first bad build: 569a4baf6d46d2a4fec772d11c2ab6c04fd8365d (2023-05-18 23:55:35.469000)
pushlog_url: https://hg.mozilla.org/comm-central/pushloghtml?fromchange=abb2293802ec3ab2a9924b6ecbfda2367568b5a4&tochange=569a4baf6d46d2a4fec772d11c2ab6c04fd8365d
Confirming what you wrote:
The following does work:
- Select a message in the message list
- Create a new message (or reply to the selected one which doesn't make sense since it will normally be quoted anyway)
- In the compose window select "Options > Quote Message".
If you start the new message or reply from a tab, it doesn't work as you reported. For me it works if you open a message in a new window and then use "Reply" or "Write".
| Reporter | ||
Comment 2•2 years ago
|
||
(In reply to Francesco from comment #1)
For me it works if you open a message in a new window and then use "Reply" or "Write".
Thank you for confirming.
I tried testing again. And I confirmed that you are right.
| Reporter | ||
Updated•2 years ago
|
Wouldn't the summary be better like:
In Thunderbird 115 and later, "Options > Quote Message" does not work when composing a new message (or reply) from a message opened in a new tab.
Wanting to quote in a reply is not a function one would use, right?
| Reporter | ||
Comment 4•2 years ago
|
||
Francesco
That does not seem to be the issue I want to report.
What would be the steps for "composing a new message from a message opened in a new tab"?
The new "mailMessageTab" should have a "Reply" button but no "New Message" button.
Wanting to quote in a reply is not a function one would use, right?
Some users may wish to create a reply message with "Automatically quote original message when replying" disabled in Account Settings > Composition and Addressing, and then quote it later to their own liking.
| Reporter | ||
Comment 5•2 years ago
|
||
I found the location that is causing this bug.
When "Options > Quote Message" is selected, GetSelectedMessages() is called to retrieve the message to quote.
https://searchfox.org/comm-esr115/source/mail/components/compose/content/MsgComposeCommands.js#1573
function GetSelectedMessages() {
let mailWindow = Services.wm.getMostRecentWindow("mail:3pane");
if (!mailWindow) {
return null;
}
let tab = mailWindow.document.getElementById("tabmail").currentTabInfo;
if (tab.mode.name == "mail3PaneTab" && tab.message) {
return tab.chromeBrowser.contentWindow?.gDBView?.getURIsForSelection();
} else if (tab.mode.name == "mailMessageTab") {
return [tab.messageURI];
}
return null;
}
If the current tab is "mailMessageTab", it refers to the member "messageURI" in the tab information, which was removed in Bug 1833804, so it seems to return undefind and cause an error.
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Comment 6•2 years ago
|
||
Two months have passed since the report, and I tested it again, but the situation has not changed.
The cause is known and is a regression by Bug 1833804.
I hope this bug is confirmed and fixed.
| Assignee | ||
Comment 7•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 8•2 years ago
|
||
Your assessment of the problem is correct. Sorry that it took some time to get to.
This function has other issues I haven't tried to fix here. Notably, in comment 1 Francesco says it works if you open a message in a new window then quote it. It doesn't, that only appears to work if the opened message is still selected in the main window. It's probably also very confusing if the user has two main windows open.
| Assignee | ||
Updated•2 years ago
|
Pushed by vineet@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/48f0516a4fdd
Fix Quote Message so it works with messages open in tabs. r=aleca
| Assignee | ||
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Comment on attachment 9379795 [details]
Bug 1868626 - Fix Quote Message so it works with messages open in tabs. r=#thunderbird-reviewers
[Triage Comment]
Approved for esr115
Comment 12•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 115.8.1:
https://hg.mozilla.org/releases/comm-esr115/rev/2cffe2dc0517
Description
•