Closed Bug 1712628 Opened 4 years ago Closed 2 years ago

mark taskbar pinning methods as unsupported in msix builds

Categories

(Firefox :: Shell Integration, enhancement, P3)

Unspecified
Windows 10
enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: agashlin, Assigned: bhearsum)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidedi-tikka])

Attachments

(1 file)

nsWindowsShellService.isCurrentAppPinnedToTaskbarAsync() currently relies on matching paths in the shortcut. This does not work for a packaged app. The UWP API TaskbarManager.IsCurrentAppPinnedAsync is the way to handle this for a packaged app.

I have a rough WIP, from trying to get RequestPinCurrentAppAsync working. It would need to be in addition to the existing implementation since this is only available from within a package.

This would only really be of use for telemetry. Aside: os.environment.launch_method is always Other when launching a package, whether it was opened from a taskbar pin, start menu shortcut, or desktop shortcut; there must be some amount of indirection so that we don't know the shortcut that opened us.

Group: partner-confidential
Whiteboard: [fidedi-tikka]
Assignee: nobody → bhearsum
Status: NEW → ASSIGNED
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ab394fa4b59b mark taskbar pinning methods as not implemented for MSIX packages r=nalexander
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Re-opening because the landed patch is just preventing us from lying about supporting pinning in MSIX - not actually implementing it.

Target Milestone: 104 Branch → ---

(In reply to bhearsum@mozilla.com (:bhearsum) from comment #4)

Re-opening because the landed patch is just preventing us from lying about supporting pinning in MSIX - not actually implementing it.

I was reminded recently that we are strongly discouraged from adding additional patches onto fixed bugs because it messes up tracking flags and various queries. For that reason, I re-filed this as https://bugzilla.mozilla.org/show_bug.cgi?id=1794159 for the actual implementation.

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Summary: Check pinning for a packaged app → mark taskbar pinning methods as unsupported in msix builds
See Also: → 1794159
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: