Fix test_createRFC822Message.js to make sure non-UTF-8 binary strings are transported correctly
Categories
(MailNews Core :: General, enhancement)
Tracking
(thunderbird_esr78 wontfix)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr78 | --- | wontfix |
People
(Reporter: tom, Assigned: tom)
Details
Attachments
(1 file, 1 obsolete file)
|
1.94 KB,
patch
|
tom
:
review+
wsmwk
:
approval-comm-beta-
|
Details | Diff | Splinter Review |
From bug 1710043 comment #12:
test_createRFC822Message.js needs an overhaul, IOUtils.readUTF8 doesn't appear to be correct for reading back arbitrary data.
Comment 1•4 years ago
|
||
Can you send a link to IOUtils.readUTF8 you're referring to? I changed to IOUtils.read a few days ago
This one didn't get changed, and the message body you're transporting should contain some arbitrary binary data to make sure there is no UTF-8 assumption anywhere in the code path.
Comment 4•4 years ago
|
||
Comment on attachment 9221305 [details] [diff] [review]
1710581.patch
Looks good, thanks. Please add a timestamp to the patch. I often use hg export tip > 1710581.patch to generate one.
Thanks for the review, now with timestamp.
Updated•4 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/e1946904f4d2
enhance test_createRFC822Message.js with some binary data. r=rnons
Comment 8•4 years ago
|
||
Comment on attachment 9221516 [details] [diff] [review]
1710581.patch
[Approval Request Comment]
Test-only code, low risk.
This bug updates test code with respect to the changes in bug 1710043 and should be uplifted at the same time.
This bug updates test code with respect to the changes in bug 1710043 and should be uplifted at the same time.
Thanks for requesting the "uplift", but it's really not necessary. Bug 1710043 is rather important, HTML "downgrade" to plain text can have some surprising results. Do you still want it on the beta or should we clear the request?
Comment 10•4 years ago
|
||
Comment on attachment 9221516 [details] [diff] [review]
1710581.patch
[Triage Comment]
Sorry, we missed doing the next 89 beta, so this will appear in beta 90
Description
•