Closed
Bug 225264
Opened 21 years ago
Closed 17 years ago
switch profile after rename fails
Categories
(SeaMonkey :: Startup & Profiles, defect)
SeaMonkey
Startup & Profiles
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: asa, Unassigned)
References
Details
Attachments
(2 obsolete files)
If you attempt to switch profiles after renaming a profile nothing happens.
Tested with an optimized trunk build from 2003/11/10 on Windows XP.
Steps to reproduce:
1. Tools -> Switch Profile
2. Manage Profiles
3. Rename a profile
4. Select renamed profile and click "Use Profile"
Nothing happens.
Expected beahvior:
A user should be able to make any changes in the Profile Manager and pick from
any of the available profiles.
| Reporter | ||
Comment 1•21 years ago
|
||
I see this on linux builds from today as well.
If you've got two profile and you rename the one you're not working from and
then try to switch to it, the switch fails.
Flags: blocking1.6b?
Comment 2•21 years ago
|
||
Also happens on Linux.
This was already broken in Mozilla 1.4.
OS: Windows XP → All
| Reporter | ||
Comment 3•21 years ago
|
||
workaround available. not going to block. I'll try to figure out if this ever
worked.
Flags: blocking1.6b? → blocking1.6b-
| Reporter | ||
Comment 4•21 years ago
|
||
darin or conrad, can either of you take a look at this?
Comment 5•21 years ago
|
||
> I'll try to figure out if this ever worked.
Also, I wonder if this works when launching the app with multiple profiles using
a build from before profile switching (1.3?)
| Reporter | ||
Comment 6•21 years ago
|
||
This actually works if you access the profile manager at application launch
rather than using the switch profile function from within the browser. I can,
for example, start profilemanager, rename a profile, then start with that or any
other profile.
Comment on attachment 142991 [details] [diff] [review]
patch v0
Hi,
Can you give r?
Attachment #142991 -
Flags: review?(ccarlen)
Comment 9•21 years ago
|
||
Brian - have you debugged to find the exact point of failure here?
Comment 10•21 years ago
|
||
I did some debugging and found the problem is, ForgetCurrentProfile(), which is
called by RenameProfile() does this:
mCurrentProfileAvailable = PR_FALSE;
That horks the next call to SetCurrentProfile() because it then doesn't shut
down the current profile, thinking it doesn't have one. Removing that from
ForgetCurrentProfile() fixes it - it shouldn't be doing that anyway. The rest
of the fix is to not call ForgetCurrentProfile() unconditionally from
RenameProfile().
Attachment #142991 -
Attachment is obsolete: true
Comment 11•21 years ago
|
||
Comment on attachment 142991 [details] [diff] [review]
patch v0
clearing r= request
Attachment #142991 -
Flags: review?(ccarlen)
Updated•21 years ago
|
Hardware: PC → All
Updated•21 years ago
|
Attachment #143219 -
Attachment description: fixes it at the root → (Bv1) fixes it at the root
Attachment #143219 -
Flags: review?(sspitzer)
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 12•18 years ago
|
||
simple patch never approved nor (obviously) checked in.
was any aspect of this picked up by bug 245135?
Comment 13•18 years ago
|
||
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a4pre) Gecko/20070417 SeaMonkey/1.5a] (nightly) (W2Ksp4)
Other steps:
...
3. Rename current profile.
4. "Use Profile" on a different profile.
r. Alert
[
SeaMonkey cannot switch to profile "xyz" automatically.
SeaMonkey will now exit.
Please start SeaMonkey again.
]
At next start, the "current" profile is still selected:
the switch (request) is not remembered.
***
Also the alert (and SeaMonkey) closes/exits as soon as the mouse is moved over it :-(
Should wait for user to (read then) press the button !
Comment 14•18 years ago
|
||
(In reply to comment #13)
> [Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a4pre) Gecko/20070417
> SeaMonkey/1.5a] (nightly) (W2Ksp4)
>
> Other steps:
Well, it seems steps need to be
1. Start a profile
2. Rename another then switch to that one
> 3. Rename current profile.
> 4. "Use Profile" on a different profile.
> r. Alert
> [
> SeaMonkey cannot switch to profile "xyz" automatically.
> SeaMonkey will now exit.
> Please start SeaMonkey again.
> ]
>
> At next start, the "current" profile is still selected:
> the switch (request) is not remembered.
And, if you start it, the profile has silenty switched from online to offline mode.
Comment 15•18 years ago
|
||
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a4pre) Gecko/20070419 SeaMonkey/1.5a] (nightly) (W2Ksp4)
Let's sum up the issues from my 2 previous comments:
A)
I got confused about the steps to reproduce:
in fact, it seems that I can (now) rename profiles as much as I want: maybe fixed by other bug ? (see comment 12)
B)
The steps to get the comment 13 alert is to open MailNews while online and let it check for new mail !
Then, no need to rename any profile, trying to switch is enough.
C)
When B happens:
*the alert is dismissed by the mouse without pressing the button.
*the SM network status change from online to offline.
*my cookies are all deleted: dataloss !
Should I open a "switch profile after checking mail fails" bug about B and C ?
Comment 16•17 years ago
|
||
Does this still happen now that trunk is using the toolkit profile manager?
Comment 17•17 years ago
|
||
(In reply to comment #12)
> simple patch never approved nor (obviously) checked in.
> was any aspect of this picked up by bug 245135?
The (checked in) patch there looks partly similar to the one here;
it probably fixed the initial issue.
(In reply to comment #16)
> Does this still happen now that trunk is using the toolkit profile manager?
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1b2pre) Gecko/20081009 SeaMonkey/2.0a2pre] (home, debug default) (W2Ksp4)
I can't reproduce the old issue nor the more recent ones.
R.WorksForMe
Assignee: profile-manager → nobody
Status: NEW → RESOLVED
Closed: 17 years ago
Depends on: 245135
QA Contact: profile-manager
Resolution: --- → WORKSFORME
Comment 18•17 years ago
|
||
Comment on attachment 143219 [details] [diff] [review]
(Bv1) fixes it at the root
Bug 245135 patch bit-rotted this one,
and probably obsoleted it too :-|
Attachment #143219 -
Attachment is obsolete: true
Attachment #143219 -
Flags: review?(sspitzer)
You need to log in
before you can comment on or make changes to this bug.
Description
•