[webkit-changes] [WebKit/WebKit] 4ced9c: Upstream support for reporting connections to unli...
Wenson Hsieh
noreply at github.com
Tue Jun 20 15:34:52 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4ced9c800ec4609fd8ed19590023ef6b3e4cc96e
https://github.com/WebKit/WebKit/commit/4ced9c800ec4609fd8ed19590023ef6b3e4cc96e
Author: Wenson Hsieh <wenson_hsieh at apple.com>
Date: 2023-06-20 (Tue, 20 Jun 2023)
Changed paths:
M Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h
M Source/WebKit/Platform/cocoa/NetworkIssueReporter.mm
Log Message:
-----------
Upstream support for reporting connections to unlisted trackers as issues in Xcode
https://bugs.webkit.org/show_bug.cgi?id=258321
Reviewed by Tim Horton and Aditya Keerthi.
Upstream code from WebKitAdditions, in NetworkIssueReporter. This uses new CFNetwork and libnetwork
SPIs to raise any connections to unlisted trackers as issues in Xcode, if the relevant debug
settings are enabled (i.e. `ne_tracker_should_save_stacktrace` returns `true`).
* Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h:
* Source/WebKit/Platform/cocoa/NetworkIssueReporter.mm:
(WebKit::NetworkIssueReporter::isEnabled):
(WebKit::NetworkIssueReporter::shouldReport):
(WebKit::NetworkIssueReporter::NetworkIssueReporter):
(WebKit::NetworkIssueReporter::~NetworkIssueReporter):
(WebKit::NetworkIssueReporter::report):
Canonical link: https://commits.webkit.org/265337@main
More information about the webkit-changes
mailing list