Bug 304376

Summary: Use more efficient network traffic attribution API
Product: WebKit Reporter: Ben Nham <nham>
Component: WebKit Misc.Assignee: Ben Nham <nham>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 304424    
Bug Blocks:    

Ben Nham
Reported 2025-12-17 18:25:12 PST
In 293525@main we changed prefetched DNS resolution to 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-12-17 18:25:21 PST
Ben Nham
Comment 2 2025-12-17 18:27:25 PST
EWS
Comment 3 2025-12-18 08:53:32 PST
Committed 304682@main (734443e9bf87): <https://commits.webkit.org/304682@main> Reviewed commits have been landed. Closing PR #55601 and removing active labels.
WebKit Commit Bot
Comment 4 2025-12-18 11:10:28 PST
Re-opened since this is blocked by bug 304424
Ben Nham
Comment 5 2025-12-19 12:09:27 PST
EWS
Comment 6 2025-12-19 14:31:01 PST
Committed 304780@main (9f34c252266c): <https://commits.webkit.org/304780@main> Reviewed commits have been landed. Closing PR #55723 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.