Open Bug 1943417 Opened 14 days ago Updated 7 days ago

Implement notification action for libnotify

Categories

(Toolkit :: Alerts Service, enhancement)

enhancement

Tracking

()

People

(Reporter: saschanaz, Assigned: saschanaz)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.

This can be tested with the following code:

var svc = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService);
var alert = Cc["@mozilla.org/alert-notification;1"].createInstance(Ci.nsIAlertNotification);
var principal = null;
// // On Windows:
// var alert = Cc["@mozilla.org/windows-alert-notification;1"].createInstance(Ci.nsIWindowsAlertNotification);
// alert.handleActions = true;
// principal = Services.scriptSecurityManager.getSystemPrincipal();
alert1.init("", "title", "message", true, "test-id", undefined, "test-id", undefined, undefined, systemPrincipal, undefined, false);
alert1.actions = [{action: "action1", title: "title1"}];
svc.showAlert(alert1, console.log)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: