components.conf |
|
1221 |
IPCUtils.h |
|
938 |
MemoryNotificationDB.sys.mjs |
|
530 |
metrics.yaml |
|
2602 |
moz.build |
|
1559 |
Notification.cpp |
|
30424 |
Notification.h |
A Notification gets a corresponding IPC actor after successful construction.
The notification object and the actor do not own each other and their
lifetimes are controlled semi-independently.
The Notification object can be cycle collected when either:
- no one is listening for the events, or
- the backend notification is closed.
The actor goes away when either:
- the backend notification is closed, or
- the tab is closed or bfcached.
(It cannot just go away on cycle collection because nsIAlertsService wants to
know whether the triggered page is still open to decide whether to open a new
tab or focus on the existing tab.)
|
6717 |
NotificationChild.cpp |
canBubble |
4269 |
NotificationChild.h |
|
1478 |
NotificationDB.sys.mjs |
|
10123 |
NotificationHandler.cpp |
|
5747 |
NotificationHandler.h |
|
1446 |
NotificationParent.cpp |
|
11367 |
NotificationParent.h |
|
2292 |
NotificationStorage.sys.mjs |
@import {NotificationDB} from "./NotificationDB.sys.mjs" |
2339 |
NotificationUtils.cpp |
|
15890 |
NotificationUtils.h |
Retrieves raw notification permission directly from PermissionManager.
|
4953 |
nsINotificationHandler.idl |
Either ping the service worker corresponding to the notification, or open
a new window if none is found.
The principal and notification ID must match the values stored in DB to
call the service worker, otherwise it'll behave as if none is found.
@param aPrincipal The principal that this notification is for.
@param aNotificationID The ID for the notification.
Corresponding to `nsINotificationStorageEntry.id` and
`nsIAlertNotification.id`.
@param aActionName The notification action in case the action button is
clicked.
@param aAutoClosed Whether the notification is auto-closed by system after
a click, e.g. on Windows. Checking this will remove the
notification from the DB.
|
1400 |
PNotification.ipdl |
|
628 |
test |
|
|