This needs to be implemented in different components: > Are asked if they want to grant a site permission to send web notifications => `PermissionUI.sys.mjs`. Could maybe also infer this based on the permission state on the platform side. > Accept/block site web notification requests => Most likely via `PermissionUI.sys.mjs` because we want to look at user interactions, possibly including the "remember" option. > Remove web notification permissions either via toolbar or preferences => We could keep track of this by registering a permission observer, then we don't need to introduce telemetry into every permission surface. However, if we want to know which surface was used to manage the permission, we will need UI specific code. > Receive a web notification => DOM Notification or service worker code > Interact with a web notification => Unsure, probably also DOM or OS integration code.
Bug 1998053 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This needs to be implemented in different components: > Are asked if they want to grant a site permission to send web notifications => `PermissionUI.sys.mjs`. Could maybe also infer this based on the permission state on the platform side. > Accept/block site web notification requests => Most likely via `PermissionUI.sys.mjs` because we want to look at user interactions, possibly including the "remember" option. > Remove web notification permissions either via toolbar or preferences => We could keep track of this by registering a permission observer, then we don't need to introduce telemetry into every permission surface. However, if we want to know which surface was used to manage the permission, we will need UI specific code. > Receive a web notification => DOM Notification or service worker code > Interact with a web notification => Unsure, probably also DOM or OS integration code.