electron/shell/browser/notifications
trop[bot] e99de2b5c6
test: ensure sender-pid hint is set in Linux notifications (#43951)
test: expect a `sender-pid` hint in Linux notifications.

This PR ensures that the `sender-pid` hint is set for new notifications.
It also updates the spec to confirm that DBus receives the hint and that
it has the correct value.

This fixes a spec failure when running libnotify >= 0.7.12 (2022-05-05).
Starting with that version, libnotify started injecting `sender-pid` if
not provided by the client. So our tests received a slightly different
DBus payload depending on what version of libnotify was installed,
causing our deep-equals tests to fail.

By always providing and testing the `sender-pid` hint, our behavior and
tests should be consistent across distros.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-25 14:02:07 -05:00
..
linux test: ensure sender-pid hint is set in Linux notifications (#43951) 2024-09-25 14:02:07 -05:00
mac refactor: NotificationPresenter::Create() returns a std::unique_ptr<> (#43805) 2024-09-20 00:18:21 -05:00
win refactor: NotificationPresenter::Create() returns a std::unique_ptr<> (#43805) 2024-09-20 00:18:21 -05:00
notification.cc chore: avoid crash while notification removal (#43061) 2024-07-26 16:32:43 -04:00
notification.h fix: Windows Toast notification dismissal from Action Center (#40197) 2023-10-17 19:33:00 -04:00
notification_delegate.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
notification_presenter.cc chore: avoid crash while notification removal (#43061) 2024-07-26 16:32:43 -04:00
notification_presenter.h refactor: NotificationPresenter::Create() returns a std::unique_ptr<> (#43805) 2024-09-20 00:18:21 -05:00
platform_notification_service.cc chore: bump chromium to 119.0.6043.0 (main) (#40045) 2023-10-02 18:01:07 -04:00
platform_notification_service.h chore: bump chromium to 119.0.6043.0 (main) (#40045) 2023-10-02 18:01:07 -04:00