Closed Bug 1661257 Opened 4 years ago Closed 4 years ago

Load PdfJs lazily in MailGlue.jsm

Categories

(Thunderbird :: General, task)

Tracking

(thunderbird_esr78 wontfix, thunderbird81 wontfix)

RESOLVED FIXED
82 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird81 --- wontfix

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In bug 1660706 I tried landing a change to make PdfJs be lazily loaded. This triggers assertion errors about processes in xpcshell-test's self-test tests.

From investigations, it seems that Firefox's BrowserGlue.jsm is prohibited from loading in xpcshell:

https://searchfox.org/mozilla-central/rev/73a14f1b367948faa571ed2fe5d7eb29460787c1/browser/components/BrowserComponents.manifest#3-10

We should do the same for Thunderbird, I just couldn't see the quick way to do it.

Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/comm-central/rev/05079d473898
Make MailGlue.jsm not load in xpcshell-tests and delay PdfJs.jsm loading until necessary. r=mkmelin

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: