Closed Bug 1775251 Opened 3 years ago Closed 3 years ago

Do not define lazy getter for XPCOMUtils in extension global

Categories

(WebExtensions :: General, task)

task

Tracking

(firefox103 fixed)

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

XPCOMUtils is known to be loaded early in the startup process, and not necessarily be a lazy getter.
I think that's true also for the extension's global.

https://searchfox.org/mozilla-central/rev/b1a5802e0f73bfd6d2096e5fefc2b47831a50b2d/toolkit/components/extensions/ExtensionCommon.jsm#1764-1767

XPCOMUtils.defineLazyModuleGetters(global, {
  ExtensionUtils: "resource://gre/modules/ExtensionUtils.jsm",
  XPCOMUtils: "resource://gre/modules/XPCOMUtils.jsm",
});
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/00d1c650d88f Do not re-define XPCOMUtils as lazy getter in extension global. r=kmag
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: