Closed Bug 1056056 Opened 10 years ago Closed 8 months ago

[Linux] Firefox can't be set as default browser

Categories

(Firefox :: Shell Integration, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox34 --- affected
firefox67 --- affected
firefox79 --- affected
firefox89 --- affected
firefox95 --- affected

People

(Reporter: cbadau, Unassigned)

References

Details

(Whiteboard: [fidedi-ope])

Reproducible on latest Nightly 34.0a1 (buildID: 20140820030202) Mozilla/5.0 (X11; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0 Steps to reproduce: 1. Launch Firefox. 2. Set Firefox as your default browser: - from the notification bar which is displayed when Firefox opens -> by selecting "Use Nightly as my default browser" option - from "about:preferences" page -> "General" tab -> "Startup" section -> by clicking on the "Make Nightly my Default Browser" Actual results: Firefox (Nightly) is not set as default browser. Expected results: Firefox (Nightly) is correctly set as default browser. Note: This is an Ubuntu specific issue.
Flags: firefox-backlog+
Mano I'm wondering if you might take this bug or know if we can expect it to be fixed for Firefox 34. I don't want it to get lost now that the iterative process has moved on to 35! Or, maybe you can pass it along to someone. Thanks!
Flags: needinfo?(mano)
Is this a regression?
Flags: needinfo?(mano)
(In reply to Camelia Badau, QA [:cbadau] from comment #0) > Reproducible on latest Nightly 34.0a1 (buildID: 20140820030202) > Mozilla/5.0 (X11; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0 > > Note: This is an Ubuntu specific issue. >this is old and even if op shows up may not remember but this needs clarification Was this Nightly from mozilla or ubuntu's repository? How did you know it did not set itself correctly? as of 57.0.2 Set Firefox as your default browser works (for mozilla's binary)
This also effects DevEdition 59.0b5 and in the Browser Console it throws this error: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIShellService.setDefaultBrowser]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://browser/content/preferences/in-content/main.js :: setDefaultBrowser :: line 1042" data: no]

This also affects Firefox Devedition 65.0b9.

I just tested the Make Default button in about:preferences#general in release version 65.0 from https://ftp.mozilla.org/pub/firefox/releases/ and can't confirm this bug. Firefox sets itself as the default web browser and works as expected when called from a gtk application.

(somewhat related 1427383)

This issue is reproducible on the latest Firefox Nightly 67.0a1 (2019-02-14). I used the same steps from the description.

Severity: normal → major
Version: 34 Branch → Trunk

This issue is reproducible on the latest Firefox 79.0. I used the same steps from the description.

This issue is still reproducible on beta 89.0b4.

Issue is still reproducible in Firefox 95.0b5.

To be clear, cbaica, this is for the binary of Firefox from Canonical, and not from Mozilla?

Flags: needinfo?(cristian.baica)

This is for the binary from Mozilla, like builds downloaded from https://archive.mozilla.org/pub/firefox/candidates/98.0b4-candidates/build1/linux-x86_64/

Flags: needinfo?(cristian.baica)

(In reply to Oana Botisan, Desktop Release QA from comment #4)

This also effects DevEdition 59.0b5 and in the Browser Console it throws
this error:

[Exception... "Component returned failure code: 0x80520012
(NS_ERROR_FILE_NOT_FOUND)
[nsIShellService.setDefaultBrowser]" nsresult: "0x80520012
(NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
chrome://browser/content/preferences/in-content/main.js :: setDefaultBrowser
:: line 1042" data: no]

Is the error still the same? Either way, I guess the root of this bug is in the shell service.

Component: Preferences → Shell Integration
Flags: needinfo?(cristian.baica)
See Also: → 1755661
Whiteboard: [fidedi-ope]

Hello Gijs,

Yes, the same error is listed in the browser console:

[Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIShellService.setDefaultBrowser]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: resource:///modules/ShellService.jsm :: setDefaultBrowser :: line 258" data: no]

Flags: needinfo?(cristian.baica)

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --
Severity: -- → S3
Priority: -- → P3

This issue can no longer be reproduced using Nightly v124.0a1 or Firefox beta 123.0b9, Firefox 122.0.1 and Firefox 123.0b7 snap build, on Ubuntu 22 I sequentially changed the default browser settings between builds, and it went correctly. I will close this issue as resolved worksforme.

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.