Not possible to select Firefox as default browser

RESOLVED FIXED in Firefox 54

Status

()

Firefox
Installer
RESOLVED FIXED
a year ago
10 months ago

People

(Reporter: lolbrol, Assigned: mhowell)

Tracking

54 Branch
Firefox 54
x86_64
Windows 10
Points:
---

Firefox Tracking Flags

(firefox54 verified)

Details

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(2 attachments, 9 obsolete attachments)

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170217030229

Steps to reproduce:

Since 3 or 4 days Firefox Nightly is not longer my default browser. I can't select firefox as my default browser. It is not listed as an option.
(Reporter)

Updated

a year ago
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64

Comment 1

a year ago
You should this that in the options http://i.imgur.com/TNBzXRS.jpg after bug 1338843.
Component: Untriaged → Installer
(Assignee)

Comment 2

a year ago
There's been a string of patches on Nightly that have affected the default browser settings. One of those may have gotten your registry into a strange, inconsistent state. Try running the Nightly installer and letting it "upgrade" your current version (it will say "upgrade" even though you're up to date already), and that should take care of it.
(Reporter)

Comment 3

a year ago
unfortunately, that doesn't solve the problem. In runned the installer and the updater.

Comment 4

a year ago
If you create a fresh profile for Nightly, is the option visible again?
https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Flags: needinfo?(zoelskoeltem03_05_)
(Reporter)

Comment 5

a year ago
No, it is still gone. I have this problem also on an other device.
http://imgur.com/a/nOZBs
Could you export following registry keys from Registry Editor and attach the exported file?
HKEY_CURRENT_USER\Software\Clients\StartMenuInternet
HKEY_CURRENT_USER\Software\RegisteredApplications
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet
HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications
Also, when you go to Firefox [Options] > [General], what message is displayed under the [Startup] section?

Updated

a year ago
Component: Installer → Shell Integration
(Reporter)

Comment 8

a year ago
Created attachment 8839254 [details]
HKEY_CURRENT_USER-Software-Clients-StartMenuInternet.reg
(Reporter)

Comment 9

a year ago
Created attachment 8839255 [details]
HKEY_CURRENT_USER-SOFTWARE-RegisteredApplications.reg
(Reporter)

Comment 10

a year ago
Created attachment 8839256 [details]
HKEY_LOCAL_MACHINE-SOFTWARE-Clients-StartMenuInternet.reg
(Reporter)

Comment 11

a year ago
Created attachment 8839257 [details]
HKEY_LOCAL_MACHINE-SOFTWARE-RegisteredApplications.reg
(Reporter)

Comment 12

a year ago
(In reply to Masatoshi Kimura [:emk] from comment #6)
> Could you export following registry keys from Registry Editor and attach the
> exported file?
> HKEY_CURRENT_USER\Software\Clients\StartMenuInternet
> HKEY_CURRENT_USER\Software\RegisteredApplications
> HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet
> HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications

I attached them to this topic. 

(In reply to Masatoshi Kimura [:emk] from comment #7)
> Also, when you go to Firefox [Options] > [General], what message is
> displayed under the [Startup] section?

'Nightly is not your default browser' in Dutch.
Thank you. Then, please attach the following registry keys:
HKEY_CLASSES_ROOT\FirefoxHTML
HKEY_CLASSES_ROOT\FirefoxHTML-A3710B8EBB50CD3
HKEY_CLASSES_ROOT\FirefoxURL
HKEY_CLASSES_ROOT\FirefoxURL-A3710B8EBB50CD3
(Reporter)

Comment 14

a year ago
Created attachment 8839375 [details]
HKEY_CLASSES_ROOT-FirefoxHTML.reg
(Reporter)

Comment 15

a year ago
Created attachment 8839376 [details]
HKEY_CLASSES_ROOT-FirefoxHTML-A3710B8EBB50CD3.reg
(Reporter)

Comment 16

a year ago
Created attachment 8839377 [details]
HKEY_CLASSES_ROOT-FirefoxHTML-A3710B8EBB50CD3.reg
(Reporter)

Comment 17

a year ago
Created attachment 8839378 [details]
HKEY_CLASSES_ROOT-FirefoxURL-A3710B8EBB50CD3.reg
(Reporter)

Comment 18

a year ago
Created attachment 8839379 [details]
HKEY_CLASSES_ROOT-FirefoxURL.reg
(Reporter)

Comment 19

a year ago
(In reply to Masatoshi Kimura [:emk] from comment #13)
> Thank you. Then, please attach the following registry keys:
> HKEY_CLASSES_ROOT\FirefoxHTML
> HKEY_CLASSES_ROOT\FirefoxHTML-A3710B8EBB50CD3
> HKEY_CLASSES_ROOT\FirefoxURL
> HKEY_CLASSES_ROOT\FirefoxURL-A3710B8EBB50CD3
Done
Created attachment 8839702 [details]
Combined registry file to reproduce the bug

Thank you very match. I could reproduce the bug with the attached registry file.

Steps to reproduce:
1. Prepare a clean Win10 VM.
2. Install Nightly to the default location (C:\Program Files\Nightly). Use Win64 builds for 64-bit Windows (otherwise the install location will different). Uncheck "Launch Nightly now" at the end of the installer.
3. Import the attached registry key.
4. Launch Nightly.
5. Go to Options > General > Startup and click [Make Default].

Actual result:
Nightly is not listed in the Web browser menu in the Default apps Setting.

Expected result:
Nightly should be listed in the Web browser menu in the Default apps Setting.

We should make the registry manipulation more robust.
Attachment #8839254 - Attachment is obsolete: true
Attachment #8839255 - Attachment is obsolete: true
Attachment #8839256 - Attachment is obsolete: true
Attachment #8839257 - Attachment is obsolete: true
Attachment #8839375 - Attachment is obsolete: true
Attachment #8839376 - Attachment is obsolete: true
Attachment #8839377 - Attachment is obsolete: true
Attachment #8839378 - Attachment is obsolete: true
Attachment #8839379 - Attachment is obsolete: true
Flags: needinfo?(zoelskoeltem03_05_)
Status: UNCONFIRMED → NEW
Ever confirmed: true
When I removed "Firefox" entry from RegisteredApplications keys, Default apps started listing Nightly. Apparently, if multiple RegisteredApplications entries refer the same app, Windows will confuse and remove both entries from the Default apps list. We should make sure to undupe entries.
STR without manipulating registry:
1. Install the latest Nightly.
2. Install Nightly Feb 01 build <https://ftp.mozilla.org/pub/firefox/nightly/2017/02/2017-02-01-03-02-07-mozilla-central/> or earlier over.

Once the problem happens, overwrite install does not fix the issue. Uninstall & reinstall fixed the problem for me.

We should check duplicate RegisteredApplications entries and remove it if found. Matt, could you take a look?
Flags: needinfo?(mhowell)
(Assignee)

Comment 23

a year ago
I think those STR are a pretty unusual thing to do (installing an older build over a current one, I mean), so I don't mind the fact that an uninstall is necessary to fix that situation.

But, I do agree that more robustness is called for. I'll put a patch together that goes a bit farther to prevent duplicate entries from being created.
Assignee: nobody → mhowell
Status: NEW → ASSIGNED
Flags: needinfo?(mhowell)
(Assignee)

Updated

a year ago
Component: Shell Integration → Installer
Comment hidden (mozreview-request)
Comment on attachment 8840981 [details]
Bug 1340568 - Fix some cases of the installer generating duplicate registry keys.

https://reviewboard.mozilla.org/r/115358/#review117530

Looks good though I'm somewhat concerned about additional issues. Might be a good thing to have QA test this out thoroughly.
Attachment #8840981 - Flags: review?(robert.strong.bugs) → review+

Comment 26

a year ago
Pushed by mhowell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3395a077e804
Fix some cases of the installer generating duplicate registry keys. r=rstrong

Comment 27

a year ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/3395a077e804
Status: ASSIGNED → RESOLVED
Last Resolved: a year ago
status-firefox54: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54

Comment 28

a year ago
The bug has been verified [bugday 20170308]
status-firefox54: fixed → verified

Comment 29

10 months ago
Operating System:win 10 64 bit
Firefox version:54.0

This bug can be reproduced in my Firefox version.This bug should should be resolved and fixed.

BUGDAY [1340568]
(Assignee)

Comment 30

10 months ago
(In reply to roshini from comment #29)
> Operating System:win 10 64 bit
> Firefox version:54.0
> 
> This bug can be reproduced in my Firefox version.This bug should should be
> resolved and fixed.
> 
> BUGDAY [1340568]

Thanks for the report, but the issue you're seeing is probably not exactly this bug. Please file a new bug, and include more information about the exact steps you're following to get to the issue.
You need to log in before you can comment on or make changes to this bug.