Closed Bug 1787552 Opened 3 years ago Closed 3 years ago

nsIWindowsShellService::PinCurrentAppToTaskbarAsync breaks icon when called repeatedly

Categories

(Firefox :: Shell Integration, defect, P3)

Desktop
Windows 10
defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: beth, Assigned: nipunshukla002)

References

Details

(Whiteboard: [fidedi-ope])

Attachments

(2 files)

Attached image the new shortcut icon

If you already have Firefox pinned and call

Cc["@mozilla.org/browser/shell-service;1"]
  .getService(Ci.nsIWindowsShellService)
  .pinCurrentAppToTaskbarAsync(false)

it will change the icon of your currently pinned Firefox. The same behaviour occurs if you do not have Firefox pinned and call the function twice.

If you call it with true instead, the same behaviour happens for the private browsing shortcut.

I think this is probably not a problem in practice right now as I believe all calls to this are guarded behind checkPinCurrentAppToTaskbar - but we ought to fix this regardless to avoid a future footgun.

P3 S4 given we suspect this is more of a future hazard than a current concern.

Severity: -- → S4
Priority: -- → P3
Whiteboard: [fidedi-ope]
Assignee: nobody → nshukla
Status: NEW → ASSIGNED
Assignee: nshukla → nobody
Status: ASSIGNED → NEW
Assignee: nobody → nshukla
Status: NEW → ASSIGNED
Attachment #9338159 - Attachment description: WIP: Bug 1787552 - Added check to see if taskbar pin already exists before → WIP: Bug 1787552 - Added check to see if taskbar pin already exists before pinning in PinCurrentAppToTaskbarWin10 r=nrishel
Attachment #9338159 - Attachment description: WIP: Bug 1787552 - Added check to see if taskbar pin already exists before pinning in PinCurrentAppToTaskbarWin10 r=nrishel → Bug 1787552 - Added check to see if taskbar pin already exists before pinning in PinCurrentAppToTaskbarWin10 r=nrishel
Pushed by nrishel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f88f4a17483 Added check to see if taskbar pin already exists before pinning in PinCurrentAppToTaskbarWin10 r=nrishel
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: