Closed Bug 555632 Opened 14 years ago Closed 13 years ago

SM 1.x to 2.x profile migration: some (user defined !?) preferences are not migrated

Categories

(SeaMonkey :: Startup & Profiles, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WONTFIX
seamonkey2.1a1

People

(Reporter: sgautherie, Assigned: sgautherie)

References

(Blocks 1 open bug, )

Details

(Keywords: dataloss, useless-UI)

Attachments

(1 file, 3 obsolete files)

[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.3a4pre) Gecko/20100328
SeaMonkey/2.1a1pre] (comm-central-trunk-win32-debug/1269807367)

Preferences like
user_pref("browser.dom.window.dump.enabled", true);
are not migrated,
though they are still valid in SM 2.x.

I guess they should be added in either
{
269 static
270 nsSeamonkeyProfileMigrator::PrefTransform gTransforms[] = {
271   MAKESAMETYPEPREFTRANSFORM("addressbook.throbber.url",                String),
...
}
or
{
604   static const char* branchNames[] =
605   {
606     // Keep the three below first, or change the indexes below
607     "mail.identity.",
...
}

NB: I'll check the other prefs once I get an answer about how to handle this issue.
Flags: blocking-seamonkey2.1a1?
The idea is to migrate the profile, not duplicate it.
Flags: blocking-seamonkey2.1a1? → blocking-seamonkey2.1a1-
Right, as Neil says. Of course, migrating more prefs where we know they still exist unchanged in 2.x is OK, but but we should not add paths that might/will migrate obsolete prefs.
So, anything we add there needs to be carefully double-checked in at least 1.9.1 code.
(In reply to comment #0)
> NB: I'll check the other prefs once I get an answer about how to handle this
> issue.

I think I've figured it out (at least for this pref): I'm checking the other ones.

(In reply to comment #1)
> The idea is to migrate the profile, not duplicate it.

Sure, but SeaMonkey even has a UI for this very pref:
http://mxr.mozilla.org/comm-central/search?string=browser.dom.window.dump&case=1&find=%2Fpref-debug%5C.xul%24
/suite/debugQA/content/pref-debug.xul

(In reply to comment #2)

Obviously.
Assignee: nobody → sgautherie.bz
Status: NEW → ASSIGNED
Flags: in-testsuite-
OS: Windows 2000 → All
Hardware: x86 → All
Target Milestone: --- → seamonkey2.1a1
Depends on: 414843
Based on mxr searches, to c-c, from mozilla(1.7).
Attachment #436083 - Flags: superreview?(neil)
Attachment #436083 - Flags: review?(kairo)
Attachment #436083 - Flags: approval-seamonkey2.0.5?
Comment on attachment 436083 [details] [diff] [review]
(Av1) Migrate all prefs which have a UI in debugQA, Port bug 414843, Rewrite MAKESAMETYPEPREFTRANSFORM()


"approval-seamonkey2.0.5=?":
I'll let the dtd as is if removals are not allowed on branch. Are they?
Comment on attachment 436083 [details] [diff] [review]
(Av1) Migrate all prefs which have a UI in debugQA, Port bug 414843, Rewrite MAKESAMETYPEPREFTRANSFORM()

>+  MAKESAMETYPEPREFTRANSFORM("extensions.dss.enabled",                  Bool),
1.x didn't have this, and Thunderbird had no UI for it or any of these prefs?

>+  MAKESAMETYPEPREFTRANSFORM("layout.reflow.dumpframebyframecounts",    Bool),
>+  MAKESAMETYPEPREFTRANSFORM("layout.reflow.dumpframecounts",           Bool),
>+  MAKESAMETYPEPREFTRANSFORM("layout.reflow.showframecounts",           Bool),
Not sure it's worth migrating these. Or the nglayout prefs. Or xul.debug.box?
Av1, with comment 6 suggestion(s),
plus TB update for past and present: same prefs after all.

(In reply to comment #6)

> 1.x didn't have this, and Thunderbird had no UI for it or any of these prefs?

http://mxr.mozilla.org/mozilla1.7/search?string=extensions.dss.enabled&case=on
Right! 'mozilla' is 1.9.0 not 1.7 :-< This pref was added in 'mozilla1.8.0'.

> Not sure it's worth migrating these. Or the nglayout prefs. Or xul.debug.box?

I assume they are "all" seldom used, but what's wrong with migrating them (when they are)?
Attachment #436083 - Attachment is obsolete: true
Attachment #436229 - Flags: superreview?(neil)
Attachment #436229 - Flags: review?(kairo)
Attachment #436229 - Flags: approval-seamonkey2.0.5?
Attachment #436083 - Flags: superreview?(neil)
Attachment #436083 - Flags: review?(kairo)
Attachment #436083 - Flags: approval-seamonkey2.0.5?
Keywords: useless-UI
(In reply to comment #6)
> Thunderbird had no UI for it or any of these prefs?

Don't know, don't care: the (gecko) prefs can be defined "manually".
Comment on attachment 436229 [details] [diff] [review]
(Av1a) Migrate all prefs which have a UI in debugQA, Port bug 414843, Rewrite MAKESAMETYPEPREFTRANSFORM()

I'm not qualified for such a review, did you see me being a peer for migration code now?

Also, please only ask for approval once a patch has been reviewed.
Attachment #436229 - Flags: review?(neil)
Attachment #436229 - Flags: review?(kairo)
Attachment #436229 - Flags: approval-seamonkey2.0.5?
(In reply to comment #9)
> did you see me being a peer for migration code now?

(Hard to tell ... See bug 448687.)
Av1a, with a missing comma in nsThunderbirdProfileMigrator.cpp.

I built and tried this locally: it migrated the additinal prefs :-)
Attachment #436229 - Attachment is obsolete: true
Attachment #439472 - Flags: superreview?(neil)
Attachment #439472 - Flags: review?(neil)
Attachment #436229 - Flags: superreview?(neil)
Attachment #436229 - Flags: review?(neil)
Av1b, with "extensions.dss.enabled" re-added.

(In reply to comment #7)
> Right! 'mozilla' is 1.9.0 not 1.7 :-< This pref was added in 'mozilla1.8.0'.

You confused me: (MAS 1.7 did not but) SM 1.x did support this pref. (Same for TB.)
Attachment #439472 - Attachment is obsolete: true
Attachment #439833 - Flags: superreview?(neil)
Attachment #439833 - Flags: review?(neil)
Attachment #439472 - Flags: superreview?(neil)
Attachment #439472 - Flags: review?(neil)
(In reply to comment #12)
> You confused me: (MAS 1.7 did not but) SM 1.x did support this pref.
It was briefly supported in SeaMonkey 1.5a before it became suiterunner.

> (Same for TB.)
But it had no UI for it?
Or indeed TB had no UI for any of these prefs?

Actually I'm going to be generous here and allow references such as mozillazine to count as pref UI, so migrating e.g. the dump pref would seem reasonable.
Serge, are you still working on this bug?
libreg is dead. And migration code from 1.x profiles has been removed. WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Attachment #439833 - Flags: superreview?(neil)
Attachment #439833 - Flags: review?(neil)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: