Closed Bug 1949263 Opened 1 year ago Closed 1 year ago

Choosing the option to "Pin Firefox to taskbar" in new profile onboarding does nothing in Microsoft Store installs of Firefox

Categories

(Firefox :: Shell Integration, defect, P3)

Firefox 135
defect

Tracking

()

VERIFIED FIXED
138 Branch
Tracking Status
firefox138 --- verified

People

(Reporter: drubino, Assigned: ericchen647)

References

Details

(Whiteboard: [fidedi])

Attachments

(2 files)

Attached image image.png

If you install Firefox from the Microsoft Store, or in an existing Microsoft Store install create a new profile or merely browse to about:welcome, you are presented with an option to "Pin Firefox to taskbar and start menu". Choosing this option should produce a Windows OS notification prompting you to confirm the pinning request. Currently in Firefox 135 no such prompt is shown, and Firefox is not pinned to the taskbar. Firefox is pinned to the Start menu.

  1. Install Firefox from the Microsoft Store and launch it
  2. Check the "Pin Firefox to taskbar or start menu" option (for simplicity you might also uncheck the other options)
  3. Press "Save and continue"

Expected: A prompt from Windows seeking approval to pin Firefox to the taskbar
Actual: Nothing happens. No prompt, no pinning.

Note: Happens on Windows 10 and Windows 11

Summary: Choosing the option to "Pin Firefox to taaskbar" in new profile onboarding does nothing in Microsoft Store installs of Firefox → Choosing the option to "Pin Firefox to taskbar" in new profile onboarding does nothing in Microsoft Store installs of Firefox
Assignee: nobody → nrishel
Whiteboard: [fidedi]
Severity: -- → S3
Priority: -- → P3
Status: NEW → ASSIGNED

Two things are going on here that need addressing.

  1. PollAppsFolderForShortcut fails on MSIX, because GetAppUserModelID and the WinTaskbar AUMID code in general isn't written in a way that's aware of MSIX registers and handles system registered AUMIDs - retrievable via GetCurrentApplicationUserModelId. Technically at runtime we can set windows to have their own AUMIDs to be differentiated in the Taskbar from an MSIX install, but these windows are not pinnable via the mechanisms we use.
  2. We temporarily set the process (not window) AUMID when pinning for our non-MSIX installs. This probably needs better consideration given the above context. Setting the process AUMID to one that doesn't match the MSIX AUMID breaks pinning.

Recording the conversation I had with :nrishel:

MSIX Firefox builds shouldn't have to call PollAppsFolderForShortcut as it's not possible to create a shortcut to a MSIX app anyways. Additionally, it's not necessary/feasible to perform the AUMID switching hack on MSIX when pinning.

To avoid unintended behavior and errors, I will look to prevent MSIX builds from running code paths that does the aforementioned tasks, and it should help fix the problem.

Assignee: nrishel → erchen
See Also: → 1950734
Pushed by erchen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c0ffc2a9af1c prevent MSIX Firefox from calling PollAppsFolderForShortcut r=nrishel
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

Looks good to me using latest Nightly 138.0a1 (msix) on Windows 10, Windows 11 and Windows 11 ARM. The pin to taskbar notification is now shown and selecting to pin will work just fine.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: