Remove deprecated nsIMsgHeaderParser::parseHeadersWithArray
Categories
(MailNews Core :: General, task)
Tracking
(Not tracked)
People
(Reporter: benc, Assigned: benc)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
benc
:
review+
|
Details | Diff | Splinter Review |
parseHeadersWithArray()
in nsIMsgHeaderParser is marked deprecated and should be removed.
parseEncodedHeader()
is the appropriate replacement.
Occurences:
https://searchfox.org/comm-central/search?q=parseHeadersWithArray&path=
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
xpcshell unit tests seems good locally with this patch applied.
I've got a try build running to check out the mozmill tests (the patch has a few more modifications to user-facing code than I'm totally comfortable with :- ):
Assignee | ||
Comment 2•5 years ago
|
||
Hmm. comm/calendar/test/unit/test_providers.js
looks borked... (I didn't pick it up locally, had calendar disabled).
Hold off on this patch - I'll investigate in the morning.
Comment 3•5 years ago
|
||
The test_provider.js failure was due to the bug 1583330 landing. Now fixed.
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Tweaked patch, with suggestions applied.
I left the adrCount
temporary in mail/base/content/mailWindowOverlay.js
as it's used a couple of times further down the function (doesn't show up in the diff).
Assignee | ||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #6)
Comment on attachment 9098414 [details] [diff] [review]
1585512-remove-parseHeadersWithArray-2.patchReview of attachment 9098414 [details] [diff] [review]:
::: mailnews/db/gloda/modules/utils.js
@@ +53,2 @@return {
names: addresses.map(a => (a.name ? a.name : null)),
Can I change that to: a => a.name || null
?
Yes, that'd probably be more idiomatic.
(although I had to run some quick tests in a javascript console before answering, to reassure my C++ instincts ;- )
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/b22962d53db9
Remove deprecated nsIMsgHeaderParser::parseHeadersWithArray. r=mkmelin
Updated•5 years ago
|
Description
•