Open message from command-line using -mail <URL> parameter throws TypeError (getter-only)
Categories
(Thunderbird :: OS Integration, defect)
Tracking
(thunderbird_esr78+ fixed, thunderbird86 affected)
People
(Reporter: eilaeufer, Assigned: mkmelin)
Details
Attachments
(1 file)
(deleted),
patch
|
lasana
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Steps to reproduce:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
Steps to reproduce:
- Open TB and select a message
- Open TB error console to get the message URL by entering var hdr = gFolderDisplay.selectedMessage; alert(hdr.folder.getUriForMsg(hdr));
- Open cmd.exe and run "thunderbird.exe -mail "<URL>"
Actual results:
Thunderbird doesn't open the message specified by the command-line parameter. Instead, the following error message in shown in the error console:
TypeError: setting getter-only property "_messenger": MailNewsCommandLineHandler.jsm:19:62 (get _messenger resource:///modules/MailNewsCommandLineHandler.jsm:19, handle resource:///modules/MailNewsCommandLineHandler.jsm:69)
Expected results:
TB should open the message specified by the comman-line parameter.
As a workaround, one can adjust the MailNewsCommandLineHandler.jsm by inserting the follwing code after line 22:
set _messenger(value) {
return value;
},
Assignee | ||
Comment 1•4 years ago
|
||
Learn something new every day...
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3d401dc2c803
Open message from command-line using -mail <URL> parameter throws TypeError (getter-only). r=lasana
Assignee | ||
Comment 4•4 years ago
|
||
Comment on attachment 9199599 [details] [diff] [review]
bug1684756__messenger.patch
[Approval Request Comment]
Regression caused by (bug #): unknown
User impact if declined: can't open specific url from command line
Testing completed (on c-c, etc.): beta
Risk to taking this patch (and alternatives if risky): low
Comment 5•4 years ago
|
||
Comment on attachment 9199599 [details] [diff] [review]
bug1684756__messenger.patch
[Triage Comment]
Approved for esr78
Comment 6•4 years ago
|
||
bugherder uplift |
Thunderbird 78.8.1:
https://hg.mozilla.org/releases/comm-esr78/rev/d22a16e8406f
Description
•