The default bug view has changed. See this FAQ.

[feature] need support to read & set prefs in install

RESOLVED INVALID

Status

Core Graveyard
Installer: XPInstall Engine
P3
enhancement
RESOLVED INVALID
18 years ago
a year ago

People

(Reporter: Cathleen, Unassigned)

Tracking

Trunk
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [xpiprd])

Attachments

(2 obsolete attachments)

(Reporter)

Description

18 years ago
we need to add support to read preference values and set preference values
through XPInstall.

call them something like:
getMozillaPref(name);
setMozillaPref(name, Value);
(Reporter)

Updated

18 years ago
Blocks: 11020
Target Milestone: M14

Comment 1

18 years ago
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall
Engine
(Reporter)

Updated

17 years ago
Target Milestone: M14 → M17
(Reporter)

Comment 2

17 years ago
moving out to m17, no need for beta 1
(Reporter)

Comment 3

17 years ago
low priority feature, moving to m20 for now.
Target Milestone: M17 → M20
(Reporter)

Updated

17 years ago
Target Milestone: M20 → M30
Parcelling out Cathleen's bugs
Assignee: cathleen → dveditz
Changing fictional "M30" to reality
Target Milestone: M30 → Future
Removing "Future" target to trigger reevaluation.
Severity: normal → enhancement
Keywords: nsbeta1
Priority: P3 → --
Summary: [feature] need support to read & set prefs → [feature] need support to read & set prefs in install
Target Milestone: Future → ---
Whiteboard: [xpiprd]
Moz 0.9 tasks
Target Milestone: --- → mozilla0.9
Priority: -- → P2
Priority: P2 → P3

Updated

16 years ago
Keywords: nsbeta1 → nsbeta1-
Target Milestone: mozilla0.9 → ---
FWIW, I have a very good use for this - changing translation provider for View |
Translate, which is defined by two string prefs. Allowing other translation
service providers to retarget that menu item with an XPI would be very cool.

Gerv

Updated

16 years ago
Keywords: nsbeta1

Updated

16 years ago
Keywords: nsbeta1-

Updated

16 years ago
Keywords: nsbeta1

Updated

15 years ago
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9

Comment 9

15 years ago
Resetting milestone of all nsbeta1-bugs, only nsbeta1+ bugs should have a target
milestone.
Target Milestone: mozilla0.9.9 → ---

Comment 10

15 years ago
Resetting milestone, only nsbeta1+ bugs can have a milestone on them, these are
niminated, but not yet plussed.
We would need 2 (getter and a setter) method per pref value type (bool, int,
char and complex), and perhaps a clearUserPref().
Created attachment 101480 [details] [diff] [review]
Partial patch (only getCharPref/setCharPref)

this is a partical impl, only has get/setCharPref.  If people agree with this
patch, I'll go do the others.

I was considering just having a global nsIPrefService variable (like File) to
minimize the amount of code needed, but could not figure out how to get that
working.
Created attachment 104772 [details] [diff] [review]
Better Partial patch (only getCharPref/setCharPref)
Attachment #101480 - Attachment is obsolete: true
Comment on attachment 104772 [details] [diff] [review]
Better Partial patch (only getCharPref/setCharPref)

r-, XPInstall scripts require a transaction model that so actions can be backed out in case of failure.

Not sure what this patch would do if a script used this feature during a product install -- there's no real "profile" so you'd need to deal with that situation (by detecting it and returning an error during the "prepare" stage).
Attachment #104772 - Attachment is obsolete: true
Attachment #104772 - Flags: review-
Assignee: dveditz → nobody
Status: ASSIGNED → NEW
install.js is no longer supported
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INVALID
(Assignee)

Updated

a year ago
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.