electron/shell
taoky 4f76fff978
fix: don't do self-destroy in LibnotifyNotification::Dismiss() (#41691)
Callers of Notification::Dismiss() assume that the notification
instance is not deleted after the call, but this was not the case
for LibnotifyNotification:
- Destroy() would get `this` deleted.
- notify_notification_close() in portal environment triggers
LibnotifyNotification::OnNotificationClosed(), and finally calls
Destroy()

This patch removes all Destroy() in Dismiss(), and adds a boolean
to tell whether notify_notification_close() is running, to avoid crash
under portal environment.

Fixes #40461.
2024-03-27 10:53:23 +01:00
..
app chore: update src_preload_function_for_environment.patch (#41500) 2024-03-04 13:11:14 +01:00
browser fix: don't do self-destroy in LibnotifyNotification::Dismiss() (#41691) 2024-03-27 10:53:23 +01:00
common test: add test and api_feature definition for chrome.scripting.globalParams (#41685) 2024-03-26 12:33:47 +01:00
renderer chore: bump chromium to 124.0.6359.0 (main) (#41584) 2024-03-15 14:03:42 -04:00
services/node fix: destroy NodeService message pipe last (#41277) 2024-02-09 22:44:35 +01:00
utility chore: remove unused std includes (#38767) 2023-06-14 11:07:18 -07:00