The default bug view has changed. See this FAQ.

firefox.exe -setDefaultBrowser does not work

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
9 years ago
5 years ago

People

(Reporter: JJ Bae, Unassigned)

Tracking

3.6 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008090820 Minefield/3.0.1 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008090820 Minefield/3.0.1 (.NET CLR 3.5.30729)

Hi, I'm trying to set Fx3 the default browser by using
"firefox.exe -silent -setDefaultBrowser" on command line.

Actually it works when I logged in as Administrator.
But usually I log in XP as a user having authority of admin.
It does not work. There are same from Fx1.0 to Fx3.0 if I logged in as the user having admin authority.

It could be fixed by modifying C:\Program Files\Mozilla Firefox\components\nsSetDefaultBrowser.js.
line 63:       shell.setDefaultBrowser(true, true);
              ->shell.setDefaultBrowser(true, false);

There is same appearance on Windows Vista.

http://kb.mozillazine.org/Setting_Your_Default_Browser#Setting_default_browser_manually

Reproducible: Always

Steps to Reproduce:
1. log in XP as a user having admin authority.
2. Window + R or start -> command line
3. Input "firefox.exe -silent -setDefaultBrowser"
4. run
Actual Results:  
The browser icon of Start Menu is changed to Fx.
But a registry key of HKEY_CLASSES_ROOT\http\shell\open\command is not changed to Fx.
So I see the dialog of setting default browser when I click the short cut.

Expected Results:  
Fx does not show me the dialog.

There is same appearance on Windows Vista.

You can succeed to set default browser by under command line on only Fx3.
<"C:\Program Files\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppUser>

referenced by nsWindowsShellService.cpp
This is a mass search for bugs which are in the Firefox General component, are
UNCO, have not been changed for 500 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10 or later, create a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you still see the issue, please update this bug. If the issue is gone, please set the status to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
(Reporter)

Comment 2

7 years ago
I checked this bug after updated Firefox 3.6.10.
But it isn't fixed yet.
I know it's not a major bug. Few people use this command.
But I already suggested how to fix it and it's so simple.
Just change "true" to "false" on javascript.

Updated

7 years ago
Whiteboard: [CLOSEME 2010-11-01]
Version: unspecified → 3.6 Branch
Reporter, Firefox 4.0.1 has been released, and it features significant improvements over previous releases. Can you please update to Firefox 4.0.1 or later, and retest your bug? Please also create a fresh profile (
http://support.mozilla.com/kb/Managing+profiles), update your plugins (Flash, Java, Quicktime, Reader, etc) and update your graphics driver and Operating system to the latest versions available. 

If you still continue to see this issue, please comment. If you do not, please close this bug as RESOLVED > WORKSFORME

filter: prefirefox4uncobugs
worksfor me,current nightly, windows 7
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
Duplicate of this bug: 512103
You need to log in before you can comment on or make changes to this bug.