Remove RDF use from Thunderbird
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: jminta, Assigned: benc)
References
(Blocks 1 open bug)
Details
(Keywords: helpwanted, meta)
Attachments
(2 files, 2 obsolete files)
685.39 KB,
patch
|
Details | Diff | Splinter Review | |
4.87 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Updated•16 years ago
|
Reporter | ||
Comment 1•16 years ago
|
||
Reporter | ||
Comment 2•16 years ago
|
||
Comment 3•16 years ago
|
||
Comment 4•16 years ago
|
||
Comment 5•15 years ago
|
||
Comment 6•15 years ago
|
||
Comment 7•13 years ago
|
||
Updated•12 years ago
|
Updated•11 years ago
|
Updated•10 years ago
|
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Posting this mainly to get my thoughts and findings organised.
Very much work-in-progress.
This patch is my experimental attempt to remove RDF from the folder-lookup-service.
Built on top of my c++ patch in Bug 453908 (still in review).
It doesn't call RDF at all, instead it mimics just the behaviour of RDF GetResource() by:
- maintaining its own cache of already-created folders
- using the uri 'scheme' part to pick the right ctor to instantiate new folders.
- calling the folder's Init() function
This should also work fine for folder implementations supplied by extensions.
This all basically works, and so theoretically it's just a matter of removing the nsIRDFResource inheritance from nsMsgDBFolder, which doesn't look hard.
In practice there are a bunch of details to iron out still:
-
I think the FLS cache is ditching some folders prematurely (using weak references)
-
my C++ patch in Bug 453908 pushes the use of GetExistingFolder(), which never creates folders or returns dangling (parentless) folders. This is causing some friction, and I might have to loosen this a bit.
I still think the use of dangling folders is really confusing and needs some attention, but I now think we can finish removing the RDF code first. -
braindump ends -
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
First pass at a patch to remove rdf from the build config and delete the entire rdf directory.
Depends upon the two patches for Bug 1527764, the one in Bug 1527772, and the two in Bug 1534163.
Updated•6 years ago
|
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Let's not attach another patch to remove the rdf/ directory. I can do that with the strike of a pen. Please only attach a patch for the mailnews bits and any other bits, like undoing these:
https://hg.mozilla.org/comm-central/rev/13e2fda05aa3#l1.12
https://hg.mozilla.org/comm-central/rev/02f531f15649
Now for a good laugh, read bug 1459748 comment #8 written on 2018-05-08: We should fix the referenced bugs so that this is only temporarily needed for a few days.
Days was the target in May 2018, not weeks or months or in fact, more than a year. If we had a prize for wishful thinking ...
Comment 12•5 years ago
|
||
Looking at https://hg.mozilla.org/try-comm-central/rev/efba9cba1562639ea83572f1eecb58d3ee9af408, you need to add the reversal of https://hg.mozilla.org/comm-central/rev/02f531f15649.
Assignee | ||
Comment 13•5 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #12)
Looking at https://hg.mozilla.org/try-comm-central/rev/efba9cba1562639ea83572f1eecb58d3ee9af408, you need to add the reversal of https://hg.mozilla.org/comm-central/rev/02f531f15649.
Doh. Just kicked off another one before reading this (I forgot the feeds patches). Anyway, I've got the other patches rebased, will sort out the details tomorrow.
Comment 14•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=636be929a2c6645d57a99deb21f5f8d5aa5e3af5
is looking good. The X4 is not your fault and fixed now, the X1 on Windows is also fixed now.
Assignee | ||
Comment 15•5 years ago
|
||
A slimmed-down version to remove the rdf code from the build.
After this, can delete rdf/
and also mailnews/base/src/nsMsgRDFUtils.[h|cpp]
I did one more try build with all the patches piled on, and it looks good:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=9dc8408751e102e4925741e6c49f29da23fa1b01
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/62176929a3c9
Disable building of RDF code. r=jorgk
https://hg.mozilla.org/comm-central/rev/86a80299d215
Remove RDF code forked in bug 1459748 and mailnews/base/src/nsMsgRDFUtils.{cpp|h}. r=jorgk
Updated•5 years ago
|
Updated•5 years ago
|
Description
•