Closed
Bug 1834595
Opened 2 years ago
Closed 2 years ago
Improve readability, clarity, and documentation of defineLazyPreferenceGetter
Categories
(Core :: XPConnect, task)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
115 Branch
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: nordzilla, Assigned: nordzilla)
Details
Attachments
(1 file)
I recently ran into an issue where I was confused about the parameter aDefaultValue
in defineLazyPreferenceGetter
.
I assumed this should be the default value of the overall return type from the getter, i.e. after applying aTransform
.
However, this parameter should be the default value of the raw preference, before applying aTransform
.
The documentation and variable names aren't really clear to me, so this patch will improve that for future users of this functionality.
Assignee | ||
Comment 1•2 years ago
|
||
Improves the clarity of defineLazyPreferenceGetter by resolving
ambiguity around the intended type of parameter aDefaultValue
Pushed by enordin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a1a0bde11b7e
Improve clarity of defineLazyPreferenceGetter r=kmag
Comment 3•2 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox115:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•