When CFPrefs direct mode is enabled in the WebContent process, the UI process will notify the WebContent about preference changes. When receiving these notifications, the WebContent process will use the CFPrefs API to update the value of these preferences in-process, which will also attempt to write these values to disk. Writing the preference values to disk is unnecessary, and will also be denied by the sandbox, so the sandbox violations should be silenced.
rdar://problem/60983812
Created attachment 395033 [details] Patch
Created attachment 395040 [details] Patch
Comment on attachment 395040 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395040&action=review > Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:878 > + (home-prefix "/Library/Preferences/") You might need to use: (define (home-prefix home-relative-prefix) (prefix (string-append (param "HOME") home-relative-prefix)))
Created attachment 395051 [details] Patch
(In reply to Brent Fulgham from comment #4) > Comment on attachment 395040 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=395040&action=review > > > Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:878 > > + (home-prefix "/Library/Preferences/") > > You might need to use: > > (define (home-prefix home-relative-prefix) > (prefix (string-append (param "HOME") home-relative-prefix))) I tried using 'home-subpath' in the latest patch, will that also be correct? Thanks for reviewing!
Comment on attachment 395051 [details] Patch r=me
Comment on attachment 395051 [details] Patch Thanks for reviewing!
Committed r259297: <https://trac.webkit.org/changeset/259297> All reviewed patches have been landed. Closing bug and clearing flags on attachment 395051 [details].