Closed Bug 2064652 Opened 3 months ago Closed 3 months ago

Keeps creating shortcut in Start Menu

Categories

(Firefox :: Shell Integration, defect)

Firefox 154
Desktop
Windows
defect

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
relnote-firefox --- 154+
firefox-esr140 --- unaffected
firefox-esr153 --- unaffected
firefox154 + fixed
firefox155 + fixed
firefox156 + fixed

People

(Reporter: Lmhess1, Assigned: yazan)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [omc])

Attachments

(2 files, 3 external files)

Steps to reproduce:

Install Firefox version 154 for Windows

Actual results:

Firefox creates a shortcut in the Start Menu. I delete the shortcut because I already have one in another location. Also, it is very rude to just create a shortcut in some random place without asking the user.

A few minutes the Firefox shortcut that I deleted is re-added.

Every time I delete the shortcut it re-appears a few minutes later.

Expected results:

I should delete the shortcut and nothing more happens.

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::General' component, but is not confident enough to move the bug to that component.

Component: Untriaged → General

This is Firefox for Windows - Not Android.
This does not happen in previous versions, it appears to be new in Firefox 154.

Component: General → Installer

:yazan could you see if this is caused by bug 2056382?

Flags: needinfo?(yalmacki)

Thanks for filing this! Just to clarify - the shortcut is recreated while firefox is still running? or does it require a restart?

Flags: needinfo?(Lmhess1)

(In reply to Harshit Sohaney [:hsohaney] from comment #4)

Thanks for filing this! Just to clarify - the shortcut is recreated while firefox is still running? or does it require a restart?

I am not 100% sure. I almost always have Firefox running any time my computer is on, so I would say this happens while Firefox is running and does not require a restart. I wasn't expecting this behavior so I wasn't watching it closely. I just know that I deleted the shortcut and a short time later it was there again. I deleted it again and a short time later it re-appeared.

After this happened 3 or 4 times I removed Firefox 154 went back to 153.1 which does not have this problem.

Flags: needinfo?(Lmhess1)
Duplicate of this bug: 2064836
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 2056382
Duplicate of this bug: 2064888

Set release status flags based on info from the regressing bug 2056382

Duplicate of this bug: 2064945

It happens at the moment Firefox 154.0 is launched. As best as I can tell, it appears to be a result of the new "Browser Icon" feature introduced with version 154.0, where users can select a custom Firefox icon from a variety of options. Apparently, when developers wrote this new feature into Firefox 154.0, nobody bothered to consider that maybe some users might not want this new feature on their machine, with the result that there is no option to toggle it off. Simply adding an option to toggle off the "Browser Icon" feature would most likely fix this issue immediately.

This happens on every launch of Firefox 154.0 on Windows 10 and 11.

If there is no Firefox.lnk icon within %APPDATA%\Microsoft\Windows\Start Menu\Programs, it will create one. It will do this even if you already have a Firefox.lnk icon within C:\ProgramData\Microsoft\Windows\Start Menu\Programs.

If there is already a Firefox.lnk icon within %APPDATA%\Microsoft\Windows\Start Menu\Programs, Firefox will steal it for its current location. So, if you have another copy of Firefox like Firefox Portable from PortableApps.com and run it, it will break the existing icon for the local copy of Firefox and have it reference the portable version of Firefox. This icon will be broken and pointing to the copy of Firefox that may be missing later, leaving the user unable to launch Firefox on their local machine.

I can further confirm that Firefox Beta channel will take over the shortcut from Firefox Stable when run and vice versa as they both use a shortcut named just Firefox. Firefox Developer and Firefox Nightly create their own separate shortcuts.

The bug is marked as tracked for firefox154 (release), tracked for firefox155 (beta) and tracked for firefox156 (nightly). However, the bug still isn't assigned.

:Amir, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(ahabibi)
Assignee: nobody → yalmacki
Depends on: 2063459
See Also: → 2063459

Confirmed here too. Version 153 and previous versions did not show this behaviour.

Attached image Screenshot.png —
Attached video Video.mp4 —

[Why is this notable]: Fixes a bug around respecting the user's choice to delete a shortcut we create. we have multiple bug reports about this, so its good to let our users know that its been fixed.
[Affects Firefox for Android]: no
[Suggested wording]: Patches a bug where Firefox would re-add Start menu shortcuts after they were deleted. Going forward, deleted Start menu shortcuts will remain deleted.
[Links (documentation, blog post, etc)]:

relnote-firefox: --- → ?
Flags: needinfo?(yalmacki)
Flags: needinfo?(ahabibi)
Attachment #9629553 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Users receive a start-menu shortcut that keeps getting re-added on browser startup.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: This patch simply gates already landed code such that:
    The start menu shortcut isn't added if the user doesn't have the browser in their start menu, or if the custom icon feature isn't enabled, or if the shortcut was deliberately deleted by the user.
  • String changes made/needed?: N/A
  • Is Android affected?: no

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: Users receive a start-menu shortcut that keeps getting re-added on browser startup.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: This patch simply gates already landed code such that:
    The start menu shortcut isn't added if the user doesn't have the browser in their start menu, or if the custom icon feature isn't enabled, or if the shortcut was deliberately deleted by the user.
  • String changes made/needed?: N/A
  • Is Android affected?: no
Attachment #9629555 - Flags: approval-mozilla-release?

Confirming this bug on Windows since Firefox v154.0. I use Classic Start Menu and have my menu neatly organised. I have a Fx shortcut in \Start Menu\Programs\Internet, but Fx puts one in \Start Menu\Programs\ on every launch.

Pushed by yalmacki@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a6c98d483090 https://hg.mozilla.org/integration/autoland/rev/73b4392df7e3 Scope the Start Menu shortcut to custom icons, and disable them when the taskbar icon can't be overridden. r=mconley,hsohaney,mossop
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
Flags: in-testsuite+
Attachment #9629553 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: 2063459 →
No longer depends on: 2063459
Duplicate of this bug: 2063459
Attachment #9629555 - Flags: approval-mozilla-release? → approval-mozilla-release+
QA Whiteboard: [qa-triage-done-c156/b155]
Whiteboard: [omc]
Duplicate of this bug: 2066510
Component: Installer → Shell Integration
OS: Unspecified → Windows
Hardware: Unspecified → Desktop
See Also: → 2065677
See Also: → 2065937
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: