Bug 224344 - [Cocoa] Silence a CFNetwork preference file access warning
Summary: [Cocoa] Silence a CFNetwork preference file access warning
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-08 15:28 PDT by Brent Fulgham
Modified: 2021-04-09 09:38 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.25 KB, patch)
2021-04-08 15:31 PDT, Brent Fulgham
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2021-04-08 15:28:26 PDT
CFNetwork, which is linked to the WebContent process, but is not used for actual networking operations there, attempts to read a preference value in 'com.apple.CFNetwork.plist'. We do not need to access these preferences outside of the Network process, and should not allow it.

Since CFNetwork treats this as a non-critical failure, and does not provide a way to hint that the preference read attempt can be avoided, we should just silence the report to avoid wasting processing cycles generating logging and backtraces.

<rdar://problem/75839558>
Comment 1 Brent Fulgham 2021-04-08 15:31:58 PDT
Created attachment 425550 [details]
Patch
Comment 2 EWS 2021-04-09 09:38:50 PDT
Committed r275764 (236342@main): <https://commits.webkit.org/236342@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425550 [details].