Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 734443e9bf87d41a60ec716323d7247dbe7b8fe2
      
https://github.com/WebKit/WebKit/commit/734443e9bf87d41a60ec716323d7247dbe7b8fe2
  Author: Ben Nham <[email protected]>
  Date:   2025-12-18 (Thu, 18 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.

* 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/304682@main



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

Reply via email to