Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c22b64a0bc64c82042e780557fde3f38bbefb04e
https://github.com/WebKit/WebKit/commit/c22b64a0bc64c82042e780557fde3f38bbefb04e
Author: Brady Eidson <[email protected]>
Date: 2024-08-30 (Fri, 30 Aug 2024)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm
M Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h
Log Message:
-----------
Use notification center delegate events to drive close and click events
rdar://134990333
https://bugs.webkit.org/show_bug.cgi?id=278897
Reviewed by Ben Nham.
Relying on the other mechanism for this required more work than is possible at
this time.
This patch adds:
- SPI for clients to pass in UNNotificationResponse objects to be handled
- Changes the default notification center delegate to use that SPI for
automatic handling
in cases where the client doesn't have their own notification center delegate
* Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
(-[_WKWebsiteDataStoreNotificationCenterDelegate
userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:]):
(+[WKWebsiteDataStore handleNotificationResponse:]):
(-[_WKWebsiteDataStoreBSActionHandler handleNotificationResponse:]):
(-[_WKWebsiteDataStoreBSActionHandler
_respondToApplicationActions:fromTransitionContext:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:
Canonical link: https://commits.webkit.org/283013@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes