锁定桌面通知权限不可用边界

桌面通知桥接把权限状态读取失败转为稳定 host_error

桌面通知桥接把权限请求失败转为稳定 host_error

桌面通知单测覆盖权限不可用错误载荷

桌面壳配置检查反查通知权限不可用边界
This commit is contained in:
2026-06-20 12:12:55 +08:00
parent 1670741a00
commit 740d329785
2 changed files with 24 additions and 2 deletions
@@ -2497,14 +2497,17 @@ for (const snippet of [
'HOST_BRIDGE_LOCAL_NOTIFICATION_BODY_MAX_LENGTH',
'DesktopNotificationPermissionAction',
'desktop_notification_permission_action',
'notification_permission_unavailable_response',
'PermissionState::Granted',
'PermissionState::Denied',
'PermissionState::Prompt | PermissionState::PromptWithRationale',
'desktop_notification_delivered_to_system_result',
'json!({"action": HOST_BRIDGE_LOCAL_NOTIFICATION_DELIVERED_TO_SYSTEM_ACTION})',
'local_notification_payload_truncates_to_shared_contract_limits',
'notification_permission_unavailable_response_is_stable',
'"a".repeat(HOST_BRIDGE_LOCAL_NOTIFICATION_TITLE_MAX_LENGTH)',
'"b".repeat(HOST_BRIDGE_LOCAL_NOTIFICATION_BODY_MAX_LENGTH)',
'"notification permission unavailable"',
'"notification permission denied"',
'app.notification().builder()',
]) {