Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9f34c252266cfe122d61a7daeed832718f6ce5ed
https://github.com/WebKit/WebKit/commit/9f34c252266cfe122d61a7daeed832718f6ce5ed
Author: Ben Nham <[email protected]>
Date: 2025-12-19 (Fri, 19 Dec 2025)
Changed paths:
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm
M Source/WebCore/Configurations/AllowedSPI.toml
M Source/WebCore/platform/network/cf/DNSResolveQueueCFNet.cpp
M Source/WebKit/Shared/Cocoa/AuxiliaryProcessCocoa.mm
Log Message:
-----------
Use more efficient network traffic attribution API
https://bugs.webkit.org/show_bug.cgi?id=304376
rdar://166751326
Reviewed by Brady Eidson.
In 293525@main we made prefetchDNS use
nw_parameters_set_source_application_by_bundle_id_internal to
attribute the DNS request to the host application. It turns out that this is a
pretty inefficient
API (it blocks on a sync XPC message for ~10 ms which then goes and enumerates
all apps by bundle ID
on the system). Fix this by using nw_parameters_set_source_application instead,
which doesn't seem
to suffer from the same issue.
This is a reland of 304682@main with a build fix for downlevels.
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm:
(WTF::setApplicationAuditToken):
(WTF::applicationAuditToken):
* Source/WebCore/Configurations/AllowedSPI.toml:
* Source/WebCore/platform/network/cf/DNSResolveQueueCFNet.cpp:
(WebCore::DNSResolveQueueCFNet::performDNSLookup):
* Source/WebKit/Shared/Cocoa/AuxiliaryProcessCocoa.mm:
(WebKit::AuxiliaryProcess::platformInitialize):
Canonical link: https://commits.webkit.org/304780@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications