Closed Bug 1471102 Opened 6 years ago Closed 6 years ago

Move more stuff from ExtensionUtils.jsm to ExtensionCommon.jsm

Categories

(WebExtensions :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox63 fixed)

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

(Whiteboard: [overhead:15k])

Attachments

(1 file)

ExtensionUtils.jsm has gotten bloated again with things that aren't needed before extension functionality starts up in a process. This is bad for content process base memory.
Whiteboard: [overhead:15k]
Comment on attachment 8987715 [details]
Bug 1471102: Move more code out of ExtensionUtils.jsm.

https://reviewboard.mozilla.org/r/252960/#review260470

This looks fine functionally.  But I'm confused about the distinction between ExtensionCommon and ExtensionUtils, it looks like they're generally both loaded into most processes?  From the original bug report, I gather that the difference is about exactly how early each is loaded?  In any case, can you add a comment (probably to the top of ExtensionUtils) explaining guidelines for what to put where.
Attachment #8987715 - Flags: review?(aswan) → review+
(In reply to Andrew Swan [:aswan] from comment #2)
> This looks fine functionally.  But I'm confused about the distinction
> between ExtensionCommon and ExtensionUtils, it looks like they're generally
> both loaded into most processes?  From the original bug report, I gather
> that the difference is about exactly how early each is loaded?  In any case,
> can you add a comment (probably to the top of ExtensionUtils) explaining
> guidelines for what to put where.

Right, it's about how early it gets loaded. ExtensionUtils gets loaded into every process very early, regardless of whether we need to run any extension functionality there. ExtensionCommon only gets loaded once we need to run some part of an extension.
https://hg.mozilla.org/mozilla-central/rev/43fb0b6e28d5
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Is manual testing required on this bug? If yes, please provide some STR and the proper extension(if required) or set the “qe-verify -“ flag.

Thanks!
Flags: needinfo?(kmaglione+bmo)
Flags: needinfo?(kmaglione+bmo) → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: