Closed
Bug 1771476
Opened 3 years ago
Closed 3 years ago
Do not export lazy getter "PREFS_GUID" from services/sync/modules/engines/prefs.js
Categories
(Firefox :: Firefox Accounts, task)
Firefox
Firefox Accounts
Tracking
()
RESOLVED
FIXED
103 Branch
| Tracking | Status | |
|---|---|---|
| firefox103 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
var EXPORTED_SYMBOLS = ["PrefsEngine", "PrefRec", "PREFS_GUID"];
...
XPCOMUtils.defineLazyGetter(this, "PREFS_GUID", () =>
CommonUtils.encodeBase64URL(Services.appinfo.ID)
);
This exports lazy getter "PREFS_GUID" defined on the per-JSM global this.
This is not possible with ESM, and this needs to be rewritten not to rely on global this
This is exported only for testing, so exporting testing-only function that returns PREFS_GUID should work
| Assignee | ||
Comment 1•3 years ago
|
||
PREFS_GUID is a lazy getter, and it cannot be exported once ESM-ified.
Depends on D147597
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/6e974f500a0b
Do not export lazy getter "PREFS_GUID" from services/sync/modules/engines/prefs.js. r=markh
Comment 3•3 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox103:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•