Bug 224344

Summary: [Cocoa] Silence a CFNetwork preference file access warning
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, eric.carlson
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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].