-silent -setDefaultBrowser doesn't set Firefox as default browser - Windows 7

UNCONFIRMED
Unassigned

Status

()

Firefox
Shell Integration
UNCONFIRMED
a year ago
a year ago

People

(Reporter: Trent Thomas, Unassigned)

Tracking

51 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36

Steps to reproduce:

Ran the following batch file:

@Echo on
Setlocal EnableDelayedExpansion
if exist "C:\Program Files (x86)\Mozilla Firefox\" (
taskkill /f /im firefox.exe
cd "C:\Program Files (x86)\Mozilla Firefox"
firefox.exe -silent -setDefaultBrowser
) else (
Echo no
)
pause


Actual results:

Script runs without error, and when I open Firefox, the prompt for setting Firefox as my default browser is no longer there; however, after checking my settings, Firefox is still not my default browser.


Expected results:

Firefox should be set as the default browser.
(Reporter)

Updated

a year ago
OS: Unspecified → Windows 7
Hardware: Unspecified → x86_64
(Reporter)

Comment 1

a year ago
Also occurs when running the following command in Start -> Run: -silent -setDefaultBrowser
> Windows NT 10.0

It contradicts with the summary. Are you really using Windows 7?
(Reporter)

Comment 3

a year ago
Yes, I am testing my scripts in a Windows 7 virtual machine.
(Reporter)

Comment 4

a year ago
Wanted to add that now the prompt for setting Firefox as default browser is appearing again.

Interestingly enough, my registry indicates that Firefox is the default browser, when Firefox itself seems to think it isn't. Internet Explorer is claiming to be the default browser inside IE's settings.

HKEY_CLASSES_ROOT\http\shell\open\command contains
HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application
HKEY_CLASSES_ROOT\http\DefaultIcon

All of these registry keys indicate Firefox to be the default browser, but it isn't.

Updated

a year ago
Component: Untriaged → Shell Integration
You need to log in before you can comment on or make changes to this bug.