[webkit-changes] [WebKit/WebKit] 23ffad: Take a background task when handling web push actions

Brady Eidson noreply at github.com
Tue Sep 3 20:40:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 23ffada2529984583b48f7ca35b837c426df7d8b
      https://github.com/WebKit/WebKit/commit/23ffada2529984583b48f7ca35b837c426df7d8b
  Author: Brady Eidson <beidson at apple.com>
  Date:   2024-09-03 (Tue, 03 Sep 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm
    M Source/WebKit/UIProcess/API/Cocoa/_WKWebPushAction.h
    M Source/WebKit/UIProcess/API/Cocoa/_WKWebPushAction.mm

  Log Message:
  -----------
  Take a background task when handling web push actions
rdar://135201512
https://bugs.webkit.org/show_bug.cgi?id=279067

Reviewed by Ben Nham.

Client apps should not have to worry about this; WebKit can manage it.

* Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
(-[WKWebsiteDataStore _handleNextPushMessageWithCompletionHandler:]):
(-[WKWebsiteDataStore _handleWebPushAction:]):
(-[WKWebsiteDataStore _handleNextPushMessage]): Deleted.
* Source/WebKit/UIProcess/API/Cocoa/_WKWebPushAction.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKWebPushAction.mm:
(+[_WKWebPushAction _webPushActionWithNotificationResponse:]):
(-[_WKWebPushAction _nameForBackgroundTaskAndLogging]):
(-[_WKWebPushAction beginBackgroundTaskForHandling]):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list