Closed Bug 288098 Opened 19 years ago Closed 14 years ago

Mozilla can't start when creating a new profile at the first time.

Categories

(SeaMonkey :: Startup & Profiles, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: eagle.lu, Unassigned)

Details

Attachments

(4 files)

Steps to Reproduce:
1. Install Cinnabar31
2. Open a terminal, run "rm -rf .mozilla", "rm -rf .java".
3. Still in the terminal, run "mozilla -P".
4. In Create Profile Wizard dialog, click Next.
5. Click Finish to create a new profile by the default name.

Bug Observation:
Mozilla can't start this time and error message in the terminal: 
"Application Finalize Called"
When you start Mozilla again, it can start up.
Attached patch patchSplinter Review
Attachment #178918 - Flags: review?(neil.parkwaycc.co.uk)
Why are you starting Mozilla with just -P ?
Comment on attachment 178918 [details] [diff] [review]
patch

I wonder if we should do anything in the Cancel case...

>+    dialogParams.SetInt(0,1); //since this is the only one profile avaiable, use it
Nit: space after comma please. Also that comment is inaccurate, as this code is
also used by the -ProfileWizard function.
Attachment #178918 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #178918 - Flags: superreview?(brendan)
Attached patch revised Splinter Review
Attachment #179154 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #179154 - Flags: review?(ccarlen)
Comment on attachment 179154 [details] [diff] [review]
revised 

>+    dialogParams.SetInt(0, 1); //set the newly created profile as the defult
Nit: typo: "default"
Attachment #179154 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Attached patch another oneSplinter Review
Sorry, for the mistake
Attachment #179159 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #179159 - Flags: review?(ccarlen)
Attached patch another oneSplinter Review
Sorry for the mistake
Attachment #179160 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #179160 - Flags: review?(ccarlen)
Attachment #179160 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Summary: Mozilla can't start when creat a new profile at the first time. → Mozilla can't start when creating a new profile at the first time.
Comment on attachment 179160 [details] [diff] [review]
another one

Does this bug mean that the -ProfileWizard switch is broken as well? Looks like
it would hit this as well. Starting with no profile, -P without a value, and
having the CreateProfile wizard come up is wrong. I see why it's happening but,
really -P should require a profile name. The command line handler returns "1"
for params with no value and that's why we end up bringing up the profile
wizard.

If the -ProfileWizard switch is broken and this fixes it, r=ccarlen. The
'Cancel' case should work because nsDialogParamBlock inits all values to 0, but
I'd rather see it done explicitly in the code you added.
Attachment #179160 - Flags: review?(ccarlen) → review+
Thanks. Can we check in th patch now?
Done, leaving the bug open in case someone wants to resolve comment 8.
Comment on attachment 179159 [details] [diff] [review]
another one

Removing obsolete requests...
Attachment #179159 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #179159 - Flags: review?(ccarlen)
Attachment #178918 - Flags: superreview?(brendan)
Attachment #179154 - Flags: review?(ccarlen)
Comment on attachment 179154 [details] [diff] [review]
revised 

> Removing obsolete requests...
You missed one.
(In reply to comment #10)
> Done, leaving the bug open in case someone wants to resolve comment 8.

Actually, please, let's close a bug that has almost all this work done - and if that other problem still is there, please file a new bug to track that other thing individually.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: