Closed Bug 1871210 Opened 1 year ago Closed 1 year ago

Add privileged means of determining what notification button was pressed.

Categories

(Toolkit :: Alerts Service, enhancement, P3)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: nrishel, Assigned: nrishel)

References

Details

(Whiteboard: [fidedi])

Attachments

(3 files)

We need a more general way to determine what notification action (button) was pressed when interacting with the in-memory callback.

When nsIWindowsAlertNotification's handleActions property is set to true, actions are sent in the notification observer's aData field instead of the notification cookie.

Pushed by nrishel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e2969964030 Extend `AlertNotification` with `WindowsAlertNotification` for custom handling of alert buttons on Windows. r=nalexander,mhughes
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

Generally, this shouldn't matter: background task notifications expect
to relaunch Firefox to handle them, and in that case handleActions
is not relevant; but it's still best to accommodate background tasks
that expect Windows 8.1 action callbacks, since it's easy to do so.

Depends on D199149

Generally, this shouldn't matter: background task notifications expect
to relaunch Firefox to handle them, and in that case handleActions
is not relevant; but it's still best to accommodate background tasks
that expect Windows 8.1 action callbacks, since it's easy to do so.

Depends on D199152

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: