Open Bug 1408580 Opened 3 years ago Updated 3 years ago

Get rid of complex values

Categories

(Core :: Preferences: Backend, enhancement)

enhancement
Not set
normal

Tracking

()

People

(Reporter: erahm, Unassigned)

References

Details

It's used a bit in js too (~16 times), mainly for nsIFile and nsIPrefLocalizedString [1]. It's possible we could just add overloads for nsIFile and nsIPrefLocalizedString and get rid of complex values, or we might just want to keep them.

[1] http://searchfox.org/mozilla-central/search?q=SetComplexValue&path=
nsIRelativeFilePref and nsISupportsString are the other two kinds of complex values. The nsISupportsString ones are deprecated and we should be able to remove support -- bug 1345294 already did a bunch of that.

Also, don't forget about comm-central. There are a bunch of {Get,Set}ComplexValue() calls there; more so than in mozilla-central :(
Bug 1414096 is removing the nsISupportsString cases.
Depends on: 1414096
You need to log in before you can comment on or make changes to this bug.