Closed Bug 1352541 Opened 8 years ago Closed 8 years ago

Avoid loading extension .jsms when there are no extensions

Categories

(WebExtensions :: Untriaged, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1317697

People

(Reporter: mccr8, Unassigned)

References

Details

In a fresh profile, it looks like we import 7 different .jsms in a content process: resource://gre/modules/ExtensionContent.jsm resource://gre/modules/ExtensionChild.jsm resource://gre/modules/ExtensionCommon.jsm resource://gre/modules/ExtensionUtils.jsm resource://gre/modules/MessageChannel.jsm resource://gre/modules/ExtensionManagement.jsm resource://gre/modules/Schemas.jsm With four content processes, and at about 30kb per .jsm compartment, that's around 840kb of memory. I looked through ExtensionContent.jsm, and it seems like it might not do anything useful if there are no extensions installed. It would be nice to avoid that overhead if we can, given that many users do not have extensions.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.