Currently, we enable CF prefs direct mode in XPCServiceMain. This is incorrect, it should be enabled only in WebContentServiceInitializer.
rdar://problem/60337842
Created attachment 393548 [details] Patch
Comment on attachment 393548 [details] Patch Ah! Yes, this is a better place for this. r=me.
(In reply to Brent Fulgham from comment #3) > Comment on attachment 393548 [details] > Patch > > Ah! Yes, this is a better place for this. r=me. Thanks for reviewing!
Created attachment 393556 [details] Patch
Comment on attachment 393556 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393556&action=review > Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceMain.mm:62 > + // Enable CF prefs direct mode to avoid connecting to the CF prefs daemon. I would have written a comment more like: // Enable CFPrefs direct mode to avoid unsuccessfully attempting to connect to the daemon and getting blocked by the sandbox.
Created attachment 393655 [details] Patch
Created attachment 393657 [details] Patch
(In reply to Darin Adler from comment #6) > Comment on attachment 393556 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=393556&action=review > > > Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceMain.mm:62 > > + // Enable CF prefs direct mode to avoid connecting to the CF prefs daemon. > > I would have written a comment more like: > > // Enable CFPrefs direct mode to avoid unsuccessfully attempting to > connect to the daemon and getting blocked by the sandbox. Fixed. Thanks for reviewing!
Comment on attachment 393657 [details] Patch r=me
Comment on attachment 393657 [details] Patch Thanks for reviewing!
Comment on attachment 393657 [details] Patch Clearing flags on attachment: 393657 Committed r258512: <https://trac.webkit.org/changeset/258512>
All reviewed patches have been landed. Closing bug.