Closed Bug 750466 Opened 12 years ago Closed 12 years ago

Pre-Populate SettingsDB

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 821814

People

(Reporter: gwagner, Assigned: gwagner)

Details

Attachments

(1 file, 2 obsolete files)

We want to add known settings to the DB during the gecko build with some xpcom magic.
Assignee: nobody → anygregor
Attached patch WiP: Write settings into DB (obsolete) (deleted) — Splinter Review
Attachment #619988 - Flags: feedback?(fabrice)
Todo: cleanup connect it to the build process get a list of settings we want to add
Attached patch WiP: Write settings into DB (obsolete) (deleted) — Splinter Review
Some Cleanup
Attachment #619988 - Attachment is obsolete: true
Attachment #619988 - Flags: feedback?(fabrice)
Attachment #620018 - Flags: feedback?(fabrice)
Comment on attachment 620018 [details] [diff] [review] WiP: Write settings into DB Review of attachment 620018 [details] [diff] [review]: ----------------------------------------------------------------- Looks like a good start to me. I guess the remaining pieces are to get the b2g build system to copy the indexedDB generated to the device?
Attachment #620018 - Flags: feedback?(fabrice) → feedback+
(In reply to Fabrice Desré [:fabrice] from comment #4) > Comment on attachment 620018 [details] [diff] [review] > WiP: Write settings into DB > > Review of attachment 620018 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks like a good start to me. > I guess the remaining pieces are to get the b2g build system to copy the > indexedDB generated to the device? Yes exactly. Cjones: what's a reasonable approach here? Always overwrite the DB when flashing, make a new build target and let the user decide? Test if the DB is there and only push when there is no DB?
One thing that I don't like too much, is that the settings list is embedded in the generation script. It would be nice to host it outside.
I guess the best solution here, which would probably be hard to implement with IDB, would be to have "default" settings (~all.js + [frontend].js), which are overridden with user settings (~prefs.js). But I don't think we have a sane way to implement that. We can carry on the discussion wrt b2g build system in the b2g repo, but - make flash must always install the pre-filled settings DB - make install-gecko should IMHO always blow away the DB. We'll lose customizations sometimes, but I think the potential confusion over making settings-related changes and them not propagating to device is too high. - make install-gaia doesn't need to touch settings. We can reuse some of kinds of build hackery we use for gaia to implement this.
Attached patch patch (deleted) — Splinter Review
update
Attachment #620018 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: