Closed Bug 1771951 Opened 3 years ago Closed 3 years ago

Pin Firefox to the Windows taskbar during install for all Windows versions (i.e., add Windows 10 and 11)

Categories

(Firefox :: Installer, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox103 --- fixed
firefox104 --- fixed

People

(Reporter: bhearsum, Assigned: bhearsum)

References

(Depends on 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: [fidedi-ope])

Attachments

(3 files)

We already do this on Windows 7 & 8, and want to do similar for Windows 10 & 11.

We have code for doing this in the installer but it only works on older versions of Windows 10 (<1903). We have code in Firefox pinning on more recent versions, but it has not been ported to the installer yet.

Independent of Windows versions, we need to consider a few install scenarios: stub, full, and MSI installs.

I would recommend that follow what we already do with creating Desktop and Start Menu shortcuts. That is to say:

  • In the stub installer, we just pin without presenting any option.
  • In the full installer, we should pin by default and allow opt-out through the INI file and the GUI.
  • The MSI will not support pinning (because it elevates prior to installation, we are unable to do so -- this is also the case on Windows 7 & 8 currently)

If we decide to try to uplift for this 102, we could punt on the GUI opt-out in the full installer to avoid a late string addition (but include it with 103).

This sounds sensible to me.

Summary: pin Firefox to the taskbar during install (Windows 10 & 11) → Pin Firefox to the Windows taskbar during install for all Windows versions (i.e., add Windows 10 and 11)

Romain, does this sound good to you as well?

Flags: needinfo?(rtestard)

This patch starts pinning Firefox to the Taskbar by default on all supported Windows versions. The main addition here is a port of our existing taskbar pinning code for modern Windows 10 & 11 versions to an NSIS plugin (compiled version also included).

I've also adjusted the block that attempts to re-pin Firefox even if it has been attempted once already, which I believe is there because we know we shipped pinning code that didn't work on some Windows 10 versions in the past. This code is no longer behind a pref (because I think we're quite confident in the pinning code we have now).

I'm actually not sure if we want this option or not (I was a bit surprised it didn't exist already, given that we have equivalents for the desktop and start menu) - but here it is if we do.

I also removed the now-useless quicklaunch option (which was only used pre-Windows 7).

Depends on D148288

I'll be helping on with strings on this. Can you add any screenshots of where the string(s) will appear?

Flags: needinfo?(bhearsum)
Attached image taskbar option.png —

The string will appear in the full installer if a user chooses a custom installation. Here's a screenshot with a proposed/placeholder string.

I should also highlight some discussion between some other engineers and I on this (from https://phabricator.services.mozilla.com/D148289):

  • Microsoft's own strings have a mix of "on the taskbar" and "in the taskbar" (you can see different strings if you change the search term)
  • This Microsoft support article suggests that "On the taskbar" might be the right verbiage - although "in the taskbar" is also found there.
Flags: needinfo?(bhearsum)

Let's go with the following. I've made some capitalization changes as well.

Create icons for Firefox Nightly:

  • On my desktop
  • In my Start menu Programs folder
  • On my taskbar

Rationale:

"On the taskbar" appears more frequently in Microsoft's own strings, particularly when referring to icons on the taskbar. Start menu is how Microsoft refers to it.

(In reply to Betsy Mikel [:betsymi] from comment #7)

Let's go with the following. I've made some capitalization changes as well.

Create icons for Firefox Nightly:

  • On my desktop
  • In my start menu programs folder
  • On my taskbar

"On the taskbar" appears more frequently in Microsoft's own strings, particularly when referring to icons on the taskbar.

Thanks! I just want to double check on the capitalization changes since these strings have been around since Firefox began. I do see that in Microsoft's own strings, "Desktop" is usually capitalized (especially when talking about Shortcuts). Similar for Start Menu and Programs.

For whatever reason, "taskbar" seems to be far less commonly capitalized.

Flags: needinfo?(bmikel)

Made a few updates to the comment above.

Flags: needinfo?(bmikel)
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/59eac90984cb add pin to taskbar support in the installer on Windows 10 & 11 r=mhowell https://hg.mozilla.org/integration/autoland/rev/3a789d06604f Add UI to the installer for opting out of Taskbar shortcut creation r=nalexander,flod
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Depends on: 1776170
Status: RESOLVED → REOPENED
Flags: needinfo?(bhearsum)
Resolution: FIXED → ---
Target Milestone: 103 Branch → ---
Regressions: 1776170

It turns out the wrong installers were used for testing this. We spoke about this on Slack and decided to wait until 104 development begins next week before relanding, so that QA can have some time to verify on Nightly before we uplift to Beta.

Flags: needinfo?(bhearsum)
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9651db4a6e3f add pin to taskbar support in the installer on Windows 10 & 11 r=mhowell https://hg.mozilla.org/integration/autoland/rev/d5dc93904754 Add UI to the installer for opting out of Taskbar shortcut creation r=nalexander,flod

Backed out for causing build bustages on makensis.mk

Flags: needinfo?(bhearsum)

(In reply to Cristian Tuns from comment #15)

Backed out for causing build bustages on makensis.mk

Caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1709608

Flags: needinfo?(bhearsum)
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f6086aed0041 add pin to taskbar support in the installer on Windows 10 & 11 r=mhowell
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1345a6f5b47c Add UI to the installer for opting out of Taskbar shortcut creation r=nalexander,flod
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch

Comment on attachment 9279634 [details]
Bug 1771951: add pin to taskbar support in the installer on Windows 10 & 11 r?mhowell!

Beta/Release Uplift Approval Request

  • User impact if declined: Users will not get Firefox pinned to their taskbar during installation
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Same as on nightly
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): These are well trodden code paths at this point -- we're now using them both in the installer and for the felt privacy work that QE has also been testing.
  • String changes made/needed: Yes - we're adding new strings in the installer for opting out of the taskbar pinning (a requirement from Legal)
  • Is Android affected?: Yes
Attachment #9279634 - Flags: approval-mozilla-beta?
Attachment #9279635 - Flags: approval-mozilla-beta?
Flags: qe-verify+

(Resetting qe-verify flag - I have no idea what happened there.)

Flags: qe-verify+

Comment on attachment 9279635 [details]
Bug 1771951: Add UI to the installer for opting out of Taskbar shortcut creation r?nalexander!

Approved for 103.0b5, thanks.
Green light from :flod about l10n changes

Attachment #9279635 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9279634 [details]
Bug 1771951: add pin to taskbar support in the installer on Windows 10 & 11 r?mhowell!

Approved for 103.0b5, thanks.

Attachment #9279634 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-triaged]
Regressions: 1778440
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Flags: needinfo?(rtestard)

Windows builds are busted for Thunderbird: https://treeherder.mozilla.org/jobs?repo=comm-central&selectedTaskRun=I6htqbc2QOKNgytALJT_7A.0
Any hint if we need to port anything or it's something that needs to be tweaked on the m-c side?

Flags: needinfo?(bhearsum)

Nevermind, we found the issue was related to another changeset.
Apologies for the noise.

Flags: needinfo?(bhearsum)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: