Closed Bug 1608274 Opened 5 years ago Closed 2 years ago

JSMs shouldn't call XPCOMUtils.defineLazyPreferenceGetter on the global `this`

Categories

(Firefox :: General, task, P5)

task

Tracking

()

RESOLVED DUPLICATE of bug 1608279

People

(Reporter: bgrins, Unassigned)

References

(Blocks 1 open bug)

Details

This won't work in ES Modules which don't have a global this object.

This is done around 100 times in m-c.

One alternative would be to make an object like LazyPrefs, call on XPCOMUtils.defineLazyPreferenceGetter on that, and then update references to not rely on it existing in the global scope.

Priority: -- → P5
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Assignee: gandalf → nobody
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.