Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7345301751fee6b570c512f68fcc2efe145312c7
      
https://github.com/WebKit/WebKit/commit/7345301751fee6b570c512f68fcc2efe145312c7
  Author: Matthew Finkel <[email protected]>
  Date:   2026-02-17 (Tue, 17 Feb 2026)

  Changed paths:
    M Source/WebKit/NetworkProcess/NetworkLoadChecker.cpp
    M Source/WebKit/NetworkProcess/NetworkSession.cpp
    M Source/WebKit/NetworkProcess/NetworkSession.h
    M Source/WebKit/Platform/cocoa/WebPrivacyHelpers.h
    M Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm
    M Source/WebKit/Shared/ScriptTrackingPrivacyFilter.cpp

  Log Message:
  -----------
  Remove advanced privacy protection condition for blockable requests
https://bugs.webkit.org/show_bug.cgi?id=308008
rdar://170489913

Reviewed by Charlie Wolfe.

Currently, requests are blockable if we have advanced privacy protections
enabled, or if a particular domain is annotated as being blockable with default
privacy protections. This change relaxes the first condition, so we only block
requests if that is web compatible.

This patch also adds an early return when none of the NetworkRequest category
is never allowed.

Covered by existing tests.

* Source/WebKit/NetworkProcess/NetworkLoadChecker.cpp:
(WebKit::NetworkLoadChecker::shouldBlockForTrackingPolicy):
* Source/WebKit/NetworkProcess/NetworkSession.cpp:
(WebKit::NetworkSession::isRequestBlockable):
(WebKit::NetworkSession::shouldBlockRequestForTrackingPolicyAndUpdatePolicy):
* Source/WebKit/NetworkProcess/NetworkSession.h:
* Source/WebKit/Platform/cocoa/WebPrivacyHelpers.h:
* Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm:
(WebKit::isRequestBlockable):
* Source/WebKit/Shared/ScriptTrackingPrivacyFilter.cpp:
(WebKit::ScriptTrackingPrivacyFilter::shouldBlockRequest):

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



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

Reply via email to