Change URI APIs from raw string to smart string
Categories
(MailNews Core :: General, task)
Tracking
(thunderbird_esr91 fixed, thunderbird95 fixed)
People
(Reporter: rachel, Assigned: rachel)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr91+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1741559 +++
+++ This bug was initially created as a clone of Bug #1739784 +++
Change URI APIs to from raw string to smart string. Patch in progress.
Assignee | ||
Comment 1•3 years ago
|
||
This patch shows that if you touch it, it easily spins out of control. There are some APIs left which pass the URI as a string, most notably GetMsgDBHdrFromURI()
which can't be changed without further ripple effects to nsMsgDBFolder::OnMessageClassified()
. There is also quite a bit of ugliness around nsMsgCompose::CreateMessage()
.
Please do a try run with the patch.
Assignee | ||
Comment 2•3 years ago
|
||
Sorry, one tweak more.
Comment 3•3 years ago
|
||
This overlaps with the list on bug 1739814, so adding a blocking dependency.
Assignee | ||
Comment 4•3 years ago
|
||
Sorry, wrong bug number.
Assignee | ||
Comment 5•3 years ago
|
||
Comment 6•3 years ago
|
||
Comment 7•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
Thanks. We shipped it in our fork to fix bug 1739814 comment #3. Feel free to review the patch over there, too. It needs clang-formatting (which sadly can't be done on mailnews/ as a whole since it will modify other files). Also please note the ESR versions here and in the other bug.
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/eba00963c6a0
Change most URI APIs to from raw string to smart string. r=mkmelin
Updated•3 years ago
|
Assignee | ||
Comment 10•3 years ago
|
||
Comment on attachment 9251327 [details] [diff] [review]
1741619-string-APIs.patch
[Approval Request Comment]
Regression caused by (bug #): bug 1571672
User impact if declined: Various things don't work on folders with non-ASCII names: Saves multiple drafts, virtual folders don't work, etc.
Testing completed (on c-c, etc.): Yes.
Risk to taking this patch (and alternatives if risky):
Not risky, mostly mechanical change of raw string API to "smart" string API allowing for non-ASCII strings to be correctly passed around.
Part of a pack of four bugs which need to be uplifted in this order:
Bug 1741559, bug 1741619, bug 1739814, bug 1739903. Bug 1739784 was the first one in the series and that's already on ESR.
Comment 11•3 years ago
|
||
Comment on attachment 9251327 [details] [diff] [review]
1741619-string-APIs.patch
[Triage Comment]
Approved for beta
Comment 12•3 years ago
|
||
bugherder uplift |
Thunderbird 95.0b5:
https://hg.mozilla.org/releases/comm-beta/rev/b3408bdba5bf
Comment 13•3 years ago
|
||
Comment on attachment 9251327 [details] [diff] [review]
1741619-string-APIs.patch
[Triage Comment]
Approved for esr91
Comment 14•3 years ago
|
||
bugherder uplift |
Thunderbird 91.4.1:
https://hg.mozilla.org/releases/comm-esr91/rev/8217ca8f959e
Description
•