[webkit-changes] [WebKit/WebKit] 58785d: Fixes crashes due to missing WebPrivacy framework ...

Wenson Hsieh noreply at github.com
Wed Jun 7 13:20:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 58785de4b8ec3cd420748f0e907cb37f990c3963
      https://github.com/WebKit/WebKit/commit/58785de4b8ec3cd420748f0e907cb37f990c3963
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm

  Log Message:
  -----------
  Fixes crashes due to missing WebPrivacy framework on Ventura/Monterey downlevels after 264942 at main
https://bugs.webkit.org/show_bug.cgi?id=257699
rdar://110238364

Reviewed by Tim Horton.

Add missing WebPrivacy framework availability checks before attempting to access soft-linked string constants.

* Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm:
(-[WKWebPrivacyNotificationListener init]):
(-[WKWebPrivacyNotificationListener dealloc]):
(-[WKWebPrivacyNotificationListener didUpdate:]):
(WebKit::LinkDecorationFilteringController::observeUpdates):

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




More information about the webkit-changes mailing list