Closed Bug 1933261 Opened 1 year ago Closed 1 year ago

firefox hangs on startup when Profiles directory is empty, but associated profiles.ini remains

Categories

(Toolkit :: Startup and Profile System, defect)

Firefox 132
x86_64
macOS
defect

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- verified
firefox133 --- wontfix
firefox134 --- verified
firefox135 --- verified

People

(Reporter: broly, Assigned: mossop)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0

Steps to reproduce:

  1. delete the contents of the Profiles directory in ~/Library/Application Support/Firefox/Profiles but do not nuke the Profiles folder
  2. leave profiles.ini and everything else intact.
  3. run firefox

Actual results:

firefox hangs becasue it presumably uses the profiles.ini to load a profile that no longer exists.

Expected results:

there should probably be a check on profiles.ini to prevent firefox from trying to load a profile that no longer exists.

Attached file 10.15 crashlog.txt —
OS: Unspecified → macOS
Hardware: Unspecified → x86_64

embarrassing icon in older video.

Attachment #9439772 - Attachment is obsolete: true

The Bugbug bot thinks this bug should belong to the 'Toolkit::Startup and Profile System' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Startup and Profile System
Product: Firefox → Toolkit
Assignee: nobody → dtownsend
Keywords: regression
Regressed by: 1866098
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06c812b3e88c Fix the profile missing and downgrade UIs to not hang on startup. r=spohl

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

looks like the team addressed this swiftly. thanks.

hopefully it'll make it in 133.0.1?

(In reply to Gagan Sidhu from comment #7)

looks like the team addressed this swiftly. thanks.

hopefully it'll make it in 133.0.1?

As this is not a security issue and the number of affected users is extremely low this will probably not be fixed in a 133.0.x release. It should be taken in 134 though.

Severity: -- → S3

no prob. thanks pete--i mean dave

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

pete--i mean dave, i have a question: isn't there any way to create a new profile if firefox cannot find the one referenced in profiles.ini?

shouldn't we do something where the browser creates a new profile or nukes profiles.ini if there are no profiles in Profiles/* that are referenced in profiles.ini?

(In reply to Gagan Sidhu from comment #11)

pete--i mean dave, i have a question: isn't there any way to create a new profile if firefox cannot find the one referenced in profiles.ini?

shouldn't we do something where the browser creates a new profile or nukes profiles.ini if there are no profiles in Profiles/* that are referenced in profiles.ini?

That probably falls under bug 1551773.

The patch landed in nightly and beta is affected.
:mossop, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox134 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(dtownsend)
Attachment #9441418 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Firefox hangs on startup if the profile folder has been deleted
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Very low
  • Explanation of risk level: Adds a missing initialise step
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9441420 - Flags: approval-mozilla-esr128?

esr128 Uplift Approval Request

  • User impact if declined: Firefox hangs on startup if the profile folder has been deleted
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Very low
  • Explanation of risk level: Adds a missing initialise step
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9441418 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9441420 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128+
Flags: needinfo?(dtownsend)
Flags: qe-verify+

Reproduced the issue with Firefox 133.0.3 on macOS 12. Firefox will no longer be opened and it will hang after deleting the profiles inside ~/Library/Application Support/Firefox/Profiles but leaving the Profiles folder.
The issue is verified fixed with Firefox 135.0a1 (2024-12-19), 134.0b10 and 128.6.0esr. Firefox no longer hangs and the Profile Missing dialog is displayed.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: