Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 291aa8903829b932323ca6ed8befe907f099d9b4
      
https://github.com/WebKit/WebKit/commit/291aa8903829b932323ca6ed8befe907f099d9b4
  Author: David Quesada <[email protected]>
  Date:   2025-04-17 (Thu, 17 Apr 2025)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/PAL/pal/spi/cocoa/WebFilterEvaluatorSPI.h
    M Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm
    M Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WebFilter.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/ContentFiltering.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/ContentFilteringPlugIn.mm

  Log Message:
  -----------
  Add a HAVE flag for WebContentAnalysis.framework
https://bugs.webkit.org/show_bug.cgi?id=291664
rdar://149443764

Reviewed by Wenson Hsieh.

To help investigate alternative implementations of web content restrictions
that don't depend on this particular framework, make it possible to build
without using WebContentAnalysis.framework via a feature flag.

* Source/WTF/wtf/PlatformHave.h:
    Define HAVE_WEBCONTENTANALYSIS_FRAMEWORK where the framework is available.
    Update the definition of HAVE_PARENTAL_CONTROLS_WITH_UNBLOCK_HANDLER, which
    heavily depends on functionality from WebContentAnalysis.framework, to
    explicitly depend on the new flag.
* Source/WebCore/PAL/pal/spi/cocoa/WebFilterEvaluatorSPI.h:
* Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm:
(WebCore::ParentalControlsContentFilter::enabled const):
(WebCore::ParentalControlsContentFilter::responseReceived):
(WebCore::ParentalControlsContentFilter::addData):
(WebCore::ParentalControlsContentFilter::finishedAddingData):
(WebCore::ParentalControlsContentFilter::updateFilterState):
* Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:
    Remove unused soft linkages of WebContentAnalysis. These could have gone
    away with https://commits.webkit.org/266523@main.
* Tools/TestWebKitAPI/Tests/WebKit/WebFilter.mm:
    The API tests around content restrictions depend on WebFilterEvaluator, so
    they should only be compiled when that framework is being used.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ContentFiltering.mm:
(-[LazilyLoadPlatformFrameworksController expectParentalControlsLoaded:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ContentFilteringPlugIn.mm:
(-[ContentFilteringPlugIn checkIfPlatformFrameworksAreLoaded:]):

Canonical link: https://commits.webkit.org/293811@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

Reply via email to