Closed
Bug 405683
Opened 17 years ago
Closed 17 years ago
content pref service doesn't update version when migrating from 2 to 3
Categories
(Toolkit :: Preferences, defect, P3)
Toolkit
Preferences
Tracking
()
RESOLVED
FIXED
mozilla1.9beta2
People
(Reporter: myk, Assigned: myk)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.72 KB,
patch
|
mconnor
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
The content pref service doesn't update the database schema version when migrating the schema from version 2 to version 3 (per bug 403375), which causes it to try again the next time the browser is started. But the second and subsequent migration attempts fail, as the schema is already at version 3, which makes the content pref service unavailable, so full zoom prefs don't work.
Here's a patch that fixes the problem. It refactors the version number change to reduce the possibility of this bug recurring and makes the index creation function succeed even if the indexes already exist to fix databases that are currently in the inconsistent state.
Flags: blocking1.9?
Attachment #290447 -
Flags: review?(mconnor)
Comment 1•17 years ago
|
||
Comment on attachment 290447 [details] [diff] [review]
patch v1: fixes problem
r=me
Attachment #290447 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 2•17 years ago
|
||
Comment on attachment 290447 [details] [diff] [review]
patch v1: fixes problem
Requesting approval for this regression fix from a recent check in of a 1.9 blocker.
Attachment #290447 -
Flags: approval1.9?
Comment 4•17 years ago
|
||
Does this (esp. bug 405697) mean that the init and destroy of FullZoom should be protected with a
if this._cps
to reduce the effect if the content pref service _is_ unavailable?
Comment 5•17 years ago
|
||
Comment on attachment 290447 [details] [diff] [review]
patch v1: fixes problem
a=beltzner for drivers
Attachment #290447 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 6•17 years ago
|
||
Checking in toolkit/components/contentprefs/src/nsContentPrefService.js;
/cvsroot/mozilla/toolkit/components/contentprefs/src/nsContentPrefService.js,v <-- nsContentPrefService.js
new revision: 1.13; previous revision: 1.12
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: blocking1.9? → blocking1.9+
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•