Open
Bug 898575
Opened 11 years ago
Updated 2 years ago
_migrateUI should be skipped for new profiles
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
NEW
People
(Reporter: Gavin, Unassigned)
Details
Most of the migration steps in nsBrowserGlue's migrateUI run in a new profile unnecessarily. We should investigate returning early if currentUIVersion == 0.
Reporter | ||
Updated•11 years ago
|
Blocks: fxdesktopbacklog
Updated•11 years ago
|
Whiteboard: p=0
Comment 1•11 years ago
|
||
the problem is that browser.migration.version is an hidden pref we set, it's hard to distinguish a new profile from a profile where this pref has been reset by mistake, plus may be useful to have it settable to zero to debug issues (basically force a re-run of migration). Though, if we could couple that with the age of the profile we could have a better heuristic.
Reporter | ||
Comment 2•11 years ago
|
||
We can add a default value for the pref (-1?) to distinguish from the "manually set to 0" case.
Comment 3•11 years ago
|
||
that would solve one of the two cases, the other case is edgy so likely we don't care.
Though, we should keep writing migration steps so they can run multiple times, to support the manual case. That so far has been enforced by the fact we were running the steps regardless in new profiles, if we change that we should add a nice comment stating people should detect state of the browser and make the migration step handle running on an already migrated profile.
Comment 4•11 years ago
|
||
Note that I think some steps such as step 5 are intended to be run on new profiles. Migration from other browsers (or a Firefox reset) happens before migrateUI and then we want to make some changes as a result. In the case of step 5 I believe we want to show the bookmark toolbar if after import there are more than 3 bookmarks on the toolbar. We should think carefully about the various migrations and consider the migration/reset case.
OS: Mac OS X → All
Hardware: x86 → All
Comment 5•10 years ago
|
||
Removed from Backlog based on team feedback from the point estimation meeting.
Comment 6•10 years ago
|
||
FYI: Bug 1029148 plans to add a new migration that I think should also run on new profiles.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•