Closed Bug 2052574 Opened 5 months ago Closed 4 months ago

Track ignored notifications on Windows

Categories

(Toolkit :: Alerts Service, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

Details

Attachments

(1 external file)

Because we want to see the user pattern of ignoring notifications.

With the following code I can confirm that the new ignored event works.

alerts = Cc["@mozilla.org/alerts-service;1"].getService().QueryInterface(Ci.nsIAlertsService)
alert = Cc["@mozilla.org/alert-notification;1"].createInstance().QueryInterface(Ci.nsIAlertNotification)
alert.initWithObject({ title: "foo", textClickable: true })
alerts.showAlertWithCallbacks(alert, { onAlertIgnored: () => console.log("ignored"), onAlertClick: () => console.log("click"), onAlertFinished: () => console.log("closed") })

Pushed by rperta@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/48cae055172c
https://hg.mozilla.org/integration/autoland/rev/e44f299a9a60
Revert "Bug 2046221, Bug 2046925, Bug 2052574, Bug 2049782 - Part 2: Add telemetry to NotificationParent r=nrishel" for causing mochitest-plain failures at test_ext_notifications.html

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED

oh wait, that was comment #2.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 4 months ago → 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: