Set forced character encoding via docshell
Categories
(MailNews Core :: Internationalization, task)
Tracking
(thunderbird_esr78 wontfix, thunderbird79 unaffected)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
thunderbird79 | --- | unaffected |
People
(Reporter: hsivonen, Assigned: mkmelin)
References
Details
Attachments
(1 file)
3.79 KB,
patch
|
hsivonen
:
review+
|
Details | Diff | Splinter Review |
c-c sets the forced charset via nsIContentViewer
. Firefox sets in via nsIDocShell
. We could have fewer code paths if c-c also set it via nsIDocShell
.
https://searchfox.org/comm-central/rev/93db6b3c1403b18025e1ad81466979c5b4cd2772/editor/ui/composer/content/editingOverlay.js#187
https://searchfox.org/comm-central/rev/93db6b3c1403b18025e1ad81466979c5b4cd2772/mailnews/base/src/nsMsgPrintEngine.cpp#471
https://searchfox.org/comm-central/rev/93db6b3c1403b18025e1ad81466979c5b4cd2772/mailnews/compose/src/nsMsgCompose.cpp#1581
Assignee | ||
Comment 1•4 years ago
|
||
editor/ is not really used anymore... but let's change it to avoid confusion
Syntax from bug 1648802 too to avoid merge conflicts later.
Reporter | ||
Comment 2•4 years ago
|
||
Comment on attachment 9160361 [details] [diff] [review] bug1648001_set_charsetdocshell.patch Review of attachment 9160361 [details] [diff] [review]: ----------------------------------------------------------------- ::: mailnews/base/src/nsMsgPrintEngine.cpp @@ +464,5 @@ > > void nsMsgPrintEngine::InitializeDisplayCharset() { > // libmime always converts to UTF-8 (both HTML and XML) > if (mDocShell) { > + mDocShell->SetCharset("UTF-8"_ns); Where is the handling of a `_ns` suffix defined?
Assignee | ||
Comment 3•4 years ago
|
||
This is from bug 1648010, landed earlier today
Assignee | ||
Comment 4•4 years ago
|
||
Comment on attachment 9160361 [details] [diff] [review] bug1648001_set_charsetdocshell.patch (Resetting review request, bugzilla acting up)
Reporter | ||
Comment 5•4 years ago
|
||
Comment on attachment 9160361 [details] [diff] [review] bug1648001_set_charsetdocshell.patch Review of attachment 9160361 [details] [diff] [review]: ----------------------------------------------------------------- Thanks.
Assignee | ||
Updated•4 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/15ac0c155ced
Set forced character encoding via docshell instead of via content viewer (content viewer will drop support for that). r=hsivonen DONTBUILD
Assignee | ||
Updated•4 years ago
|
Description
•