remove compat.jsm and other basically unused or unneeded former enigmail modules
Categories
(MailNews Core :: Security: OpenPGP, task)
Tracking
(thunderbird_esr78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: mkmelin, Assigned: mkmelin)
References
(Blocks 1 open bug)
Details
(Keywords: leave-open)
Attachments
(31 files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details |
This doesn't seem to do anything useful. All the services can be called directly, and the tree stuff is for old versions of Thunderbird.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Replace EnigmailCompat.generateQI with ChromeUtils.generateQI
find mail -type f -not -path ".hg/" -regex ".*.(jsm|js)$" -exec sed -i -E 's/EnigmailCompat.generateQI/ChromeUtils.generateQI/g' {} ;
Delete lazy import lines
find mail -type f -not -path ".hg/" -regex ".*.(jsm|js)$" -exec sed -i -E '/EnigmailCompat: "chrome://openpgp/content/modules/compat.jsm"/d' {} ;
EnigmailCompat.copyFileToMailFolder -> MailServices.copy.CopyFileMessage
+ then manually adjust the arguments
find mail -type f -not -path ".hg/" -regex ".*.(jsm|js)$" -exec sed -i -E 's/EnigmailCompat.copyFileToMailFolder/MailServices.copy.CopyFileMessage/g' {} ;
EnigmailCompat.getUrlFromUriSpec: move this function to EnigmailFuncs, mail/extensions/openpgp/content/modules/funcs.jsm
find mail -type f -not -path ".hg/" -regex ".*.(jsm|js)$" -exec sed -i -E 's/EnigmailCompat.getUrlFromUriSpec/EnigmailFuncs.getUrlFromUriSpec/g' {} ;
EnigmailCompat.getExistingFolder -> MailUtils.getExistingFolder
find mail -type f -not -path ".hg/" -regex ".*.(jsm|js)$" -exec sed -i -E 's/EnigmailCompat.getExistingFolder/MailUtils.getExistingFolder/g' {} ;
getTreeCompatibleFuncs: manually change to operate on the tree and not on the functs (which just wrapped the functions)
Assignee | ||
Comment 3•4 years ago
|
||
FeedUtils had copy of the same functionality. Perhaps the function should be moved somewhere else, but we're not even hooking up the keyserver atm so it's for the moment unused code.
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D111421
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D111425
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D111544
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D111545
Comment 10•4 years ago
|
||
Assignee | ||
Comment 11•4 years ago
|
||
We're not using anything from the enigmail.properties file, since everything was converted to Fluent.
Inlining the strings now so we know what they were, in case some of them are needed in the future.
Comment 12•4 years ago
|
||
Assignee | ||
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
Assignee | ||
Comment 15•4 years ago
|
||
Assignee | ||
Comment 16•4 years ago
|
||
Assignee | ||
Comment 17•4 years ago
|
||
Comment 18•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 19•4 years ago
|
||
Assignee | ||
Comment 20•3 years ago
|
||
I assume this was used for something more at some point in the past. At the moment, it doesn't appear to do much.
Nothing was every pushed to createdURIs.
For the buggy exchange message, it appears we always just display blank now until we can decrypt. The message that (maybe?) was intended to show, I don't see ever getting accessed.
Assignee | ||
Comment 21•3 years ago
|
||
Comment 22•3 years ago
|
||
Assignee | ||
Comment 23•3 years ago
|
||
Depends on D127939
Assignee | ||
Comment 24•3 years ago
|
||
Depends on D127942
Comment 25•3 years ago
|
||
Assignee | ||
Comment 26•3 years ago
|
||
Remove temp dir handling (temp dir must always exist), and also a few other methods never used anymore.
Assignee | ||
Comment 27•3 years ago
|
||
Assignee | ||
Comment 28•3 years ago
|
||
Assignee | ||
Comment 29•3 years ago
|
||
Comment 30•3 years ago
|
||
Comment 31•3 years ago
|
||
Assignee | ||
Comment 32•3 years ago
|
||
Only use in uncommented code...
Comment 33•3 years ago
|
||
Assignee | ||
Comment 34•3 years ago
|
||
This makes the cases that were already in async contexts use normal async/await instead,
and makes some easy-to-convert functions to async as well.
Remaining cases are harder and may each require more work.
Assignee | ||
Comment 35•3 years ago
|
||
It's possible Thunderbird should also have some functionality to remind about expiring keys, but I don't think this would be it.
I don't understand why the recommendation has been to create a new key. Wouldn't it be better to extend the validity?
Assignee | ||
Comment 36•3 years ago
|
||
Comment 37•3 years ago
|
||
Comment 38•3 years ago
|
||
Assignee | ||
Comment 39•3 years ago
|
||
Inlined and slight cleaned up into the one uncommnented (and very broken) use case...
Assignee | ||
Comment 40•3 years ago
|
||
Removing EnigmailFiles required making more functions async, so fixing it rippled a bit.
Making things async changed some timings slightly, which caused some test failures.
I located and fixed a few such problems, where async methods were not properly awaited.
Depends on D133947
Comment 41•3 years ago
|
||
Assignee | ||
Comment 42•3 years ago
|
||
Removed the whenDoneDB param and made proper use of the functions being async instead.
Fixes some minor buggy behavior as well.
Comment 43•3 years ago
|
||
Comment 44•3 years ago
|
||
Comment 45•3 years ago
|
||
Assignee | ||
Comment 46•3 years ago
|
||
Comment 47•3 years ago
|
||
Assignee | ||
Comment 48•3 years ago
|
||
Comment 49•3 years ago
|
||
Comment 50•2 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #40)
Created attachment 9255584 [details]
Bug 1677088 - convert EnigmailFiles to using IOUtils. r=PatrickBrunschwig
This patch introduced (at least) regression bug 1778509.
Code that previously used binary file reading, and that expected to handle binary files, was converted to use readUTF8.
Assignee | ||
Comment 51•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Comment 52•1 year ago
|
||
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/1a1d2a8fd6ff
Remove some dead code in EnigmailMime. r=kaie
Description
•