Remove EnigmailLazy and use XPCOMUtils.defineLazyGetter instead
Categories
(MailNews Core :: Security: OpenPGP, task, P3)
Tracking
(thunderbird_esr78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: KaiE, Assigned: lasana)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Magnus suggested we should remove the old EnigmailLazy code, and use XPCOMUtils.defineLazyGetter
Comment 1•5 years ago
|
||
Hmm. Looks like what it does is not really lazy loading though. https://searchfox.org/comm-central/source/mail/extensions/openpgp/content/modules/lazy.jsm#11
A homegrown attempt that aims to only load the module once? But modules are always just loaded once. Maybe it was a workaround from the past? Or am I misreading?
Comment 2•4 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #1)
Hmm. Looks like what it does is not really lazy loading though. https://searchfox.org/comm-central/source/mail/extensions/openpgp/content/modules/lazy.jsm#11
A homegrown attempt that aims to only load the module once? But modules are always just loaded once. Maybe it was a workaround from the past? Or am I misreading?
It returns a function, so that is lazy loading.
However, it would still be better to use defineLazyModuleGetters & friends (note: bug 1664697 is doing a lot of module loading rewrite, but is not addressing this specific issue).
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
EnigmailLazy removed. I tested this using the existing openpgp tests and the ones coming in bug 1673652 (needs to be updated for this).
Assignee | ||
Comment 4•4 years ago
|
||
Here is a try run that includes this:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=d0858d16280980864268b08cc6e1b835be2baabf
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Requested updates made.
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
Fixed the ones I missed.
Comment 9•4 years ago
|
||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a4c5a82aedf8
Replace EnigmailLazy with XPCOM.defineLazyGetter(). r=mkmelin
Description
•