[webkit-changes] [WebKit/WebKit] bf96dc: Remove tracker-related member variables in Resourc...

Wenson Hsieh noreply at github.com
Fri Aug 11 17:35:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bf96dcdc21fe6ce8a1c19d747b616fdd75ce32f3
      https://github.com/WebKit/WebKit/commit/bf96dcdc21fe6ce8a1c19d747b616fdd75ce32f3
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M Source/WebCore/platform/network/cf/ResourceError.h
    M Source/WebCore/platform/network/mac/ResourceErrorMac.mm
    M Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp

  Log Message:
  -----------
  Remove tracker-related member variables in ResourceError
https://bugs.webkit.org/show_bug.cgi?id=260084

Reviewed by Alex Christensen.

Remove `ResourceError::m_blockedTrackerHostName`, and replace it with a couple of getter methods
instead to retrieve (1) whether or not the networking stack blocked a tracker, and (2) the resolved
host name of a blocked known tracker from the underlying `NSError`.

* Source/WebCore/platform/network/cf/ResourceError.h:
(WebCore::ResourceError::blockedKnownTracker const): Deleted.
(WebCore::ResourceError::blockedTrackerHostName const): Deleted.
* Source/WebCore/platform/network/mac/ResourceErrorMac.mm:
(WebCore::ResourceError::platformLazyInit):
(WebCore::ResourceError::blockedKnownTracker const):
(WebCore::ResourceError::blockedTrackerHostName const):
* Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::didFailLoading):

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




More information about the webkit-changes mailing list