Bug 1233350 - Fix TypeError in notifications.getAll(). r=kmag
This also adds some tests for the method.
This commit is contained in:
@@ -124,7 +124,7 @@ extensions.registerPrivilegedAPI("notifications", (extension, context) => {
|
||||
|
||||
getAll: function(callback) {
|
||||
let notifications = notificationsMap.get(extension);
|
||||
notifications = notifications.map(notification => notification.id);
|
||||
notifications = Array.from(notifications, notification => notification.id);
|
||||
runSafe(context, callback, notifications);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user