Replace idl nsIArray usage with Array<T> in mailnews/base/search/
Categories
(MailNews Core :: General, task)
Tracking
(thunderbird_esr78 wontfix)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr78 | --- | wontfix |
People
(Reporter: benc, Assigned: benc)
References
Details
(Keywords: leave-open)
Attachments
(5 files)
|
15.19 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
|
32.00 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
|
3.75 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
|
11.23 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
|
12.36 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
The idl files involved are:
mailnews/base/search/public/nsIMsgFilter.idl
mailnews/base/search/public/nsIMsgFilterService.idl
mailnews/base/search/public/nsIMsgSearchValidityTable.idl
mailnews/base/search/public/nsIMsgFilterCustomAction.idl
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
A reasonably straightforward one to kick things off...
Comment 2•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
•
|
||
(In reply to Magnus Melin [:mkmelin] from comment #2)
- nsTArray<RefPtr<nsIMsgRuleAction>> actionList;
since it holds interfaces, should it be nsCOMPtr instaed of RefPtr? same for
other places
Technically, probably. But the C++ mappings for xpidl is:
Array<nsIThingy> => nsTArray<RefPtr<nsIThingy>>
(hmm... bugzilla markdown spuriously escaping less-than signs in code blocks?)
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/596c14b19879
Remove nsIArray use from nsIMsgFilter interface. r=mkmelin
Updated•6 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 5•5 years ago
|
||
try run here:
(just linux, but I'll be running some more comprehensive runs which include this patch)
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/41df9fb58b55
Remove nsIArray use from nsIMsgFilterService. r=mkmelin
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Comment 8•5 years ago
|
||
Turns out that validateTerms() method in nsIMsgSearchValidityTable isn't actually being used. It's not immediately obvious because there are other validateTerms() methods in the search code.
Try run looks OK I think:
(I thought toolkit/components/search/tests/xpcshell/test_webextensions_startup_remove.js looked like a new orange light, but it times out for me with or without the patch).
| Assignee | ||
Comment 9•5 years ago
|
||
And this one excises the nsIArray param in nsIMsgFilterCustomAction.apply().
(note: apply() is a really bad name to give a function that you might want to be looking for later! :-)
Another try build, same possible-spurious fail, but I think otherwise fine:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=1087d8d77b3e999e69c923e5fdcb8c3d8d13347b
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 12•5 years ago
|
||
This one renames apply() to applyAction().
Separate patch to simplify review - it touches a bunch of other places the previous patch doesn't.
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c0718957546c
Remove nsIArray use in nsIMsgFilterCustomAction.apply(). r=mkmelin
https://hg.mozilla.org/comm-central/rev/7ca679f99d8b
Rename nsIMsgFilterCustomAction.apply() to applyAction(). r=mkmelin
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Description
•