[webkit-changes] [WebKit/WebKit] 75b4dd: Declarative Web Push: For activated declarative no...

Brady Eidson noreply at github.com
Tue Sep 19 22:19:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 75b4dd8d1065ea49c915f2d51914f7bba798a0ee
      https://github.com/WebKit/WebKit/commit/75b4dd8d1065ea49c915f2d51914f7bba798a0ee
  Author: Brady Eidson <beidson at apple.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm
    M Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreDelegate.h
    M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreClient.h
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm

  Log Message:
  -----------
  Declarative Web Push: For activated declarative notifications, do the action URL instead of a notification click event
rdar://114888436

Reviewed by Dan Glastonbury.

When the app notifies WebKit of a notification click, and that notification has a default action URL,
skip the network process and service worker processing; Just ask the app to open the URL.

* Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
(-[WKWebsiteDataStore _processPersistentNotificationClick:completionHandler:]):
* Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreDelegate.h:
* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreClient.h:
(WebKit::WebsiteDataStoreClient::navigationToNotificationActionURL):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm:
(-[PushNotificationDelegate websiteDataStore:navigateToNotificationActionURL:]):

Canonical link: https://commits.webkit.org/268179@main




More information about the webkit-changes mailing list