Removing XPCOMUtils.defineLazyGetter

Skip to first unread message

Gregory Pappas

Jan 18, 2024, 1:28:57 AMJan 18
Good morning everyone! I have some information to share,

In bug 1805288, Arai added ChromeUtils.defineLazyGetter, which replaced the underlying implementation of XPCOMUtils.defineLazyGetter.

In bug 1845311, most uses of XPCOMUtils.defineLazyGetter were replaced with ChromeUtils.defineLazyGetter. This cut down the number of files that import XPCOMUtils.sys.mjs a lot.

Finally, in bug 1872922, the last few uses of XPCOMUtils.defineLazyGetter were replaced and a new ESLint rule was added which will reject new uses of XPCOMUtils.defineLazyGetter in the tree.

The goal is to completely remove XPCOMUtils.defineLazyGetter, so any out-of-tree code that depends on it will need to be updated to use ChromeUtils.defineLazyGetter instead.

Please subscribe to the tracking bug 1820099 if you are interested.
Reply all
Reply to author
0 new messages