plainTextBody: editor.outputToString("text/plain", 0), is wrong
Categories
(Thunderbird :: Add-Ons: Extensions API, defect)
Tracking
(thunderbird_esr78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: jorgk-bmo, Assigned: TbSync)
Details
Attachments
(3 files, 1 obsolete file)
This is most likely wrong, as it doesn't cater for CJK text.
You should use nsIDocumentEncoder::OutputDisallowLineBreaking
Reporter | ||
Comment 1•4 years ago
|
||
Sorry, the line above is equally wrong:
body: editor.outputToString("text/html", 0),
Or maybe I'm wrong, maybe it doesn't matter if we don't request formatted. Best to try it with some long CJK text, like here:
https://searchfox.org/comm-central/rev/0c6472bec30280a0648e5101ffacaf72907e4cc2/mailnews/compose/test/unit/test_longLines.js#98
Comment 2•4 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is --
(Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to --
(default, untriaged.)
Comment 3•4 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is --
(Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to --
(default, untriaged.)
Comment 4•4 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is --
(Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to --
(default, untriaged.)
Comment 5•4 years ago
|
||
The severity of these bugs was changed, mistakenly, from normal
to S3
.
Because these bugs have a priority of --
, indicating that they have not been previously triaged, these bugs should be changed to Severity of --
.
Assignee | ||
Comment 6•3 years ago
•
|
||
STR using the attached add-on.
- Install this extension using the "Load Temporary Add-on ..." on the "Debug Add-ons" page.
- Copy the following content of the attached
sample.txt
file into a composer (download the file to disk, do not copy its content from the html view of bugzilla). - Change the width of the compose window and observe how the text reflows.
- Click on the Compose action button "Test"
-> The content of the composer will be removed and put back in after 1s.
- Change the width of the compose window and observe how the text reflows but now has extra spaces in it.
Assignee | ||
Comment 7•3 years ago
|
||
Assignee | ||
Comment 8•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 9•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/d5632ba2d883
Fix getComposeDetails for long CJK text. r=mkmelin
Updated•3 years ago
|
Updated•3 years ago
|
Description
•