[webkit-changes] [WebKit/WebKit] 6359c6: [Cocoa] Pass host process audit token to the WebFi...

Brent Fulgham noreply at github.com
Tue Aug 6 16:06:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6359c6e87a404d8bcd4d45bddc8aa589b4364d2e
      https://github.com/WebKit/WebKit/commit/6359c6e87a404d8bcd4d45bddc8aa589b4364d2e
  Author: Brent Fulgham <bfulgham at apple.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/PAL/pal/spi/cocoa/WebFilterEvaluatorSPI.h
    M Source/WebCore/loader/ContentFilter.cpp
    M Source/WebCore/loader/ContentFilter.h
    M Source/WebCore/platform/PlatformContentFilter.h
    M Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm
    M Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp

  Log Message:
  -----------
  [Cocoa] Pass host process audit token to the WebFilterEvaluator
https://bugs.webkit.org/show_bug.cgi?id=277643
<rdar://109173794>

Reviewed by Andy Estes.

Pass the WebKit host process audit token to the WebFilterEvaluator when parental controls
and other content filtering is enabled. This allows that framework to confirm process
entitlements and to support additional filtering features.

This patch simply passes the existing audit token value to the WebFilterEvaluator object,
when this property exists.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/PAL/pal/spi/cocoa/WebFilterEvaluatorSPI.h:
* Source/WebCore/loader/ContentFilter.cpp:
(WebCore::ContentFilter::setHostProcessAuditToken):
* Source/WebCore/loader/ContentFilter.h:
* Source/WebCore/platform/PlatformContentFilter.h:
(WebCore::PlatformContentFilter::hostProcessAuditToken const):
(WebCore::PlatformContentFilter::setHostProcessAuditToken):
* Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm:
(WebCore::ParentalControlsContentFilter::responseReceived):
* Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::startContentFiltering):

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