The MessageUI framework has start-up code that checks for some mail features. These checks are only needed/used for Mail, but are getting called (and denied) for unrelated applications that use WebKit. Remove this logging spew (so we can find real problems) by telling our sandbox system not to notify us that it has (as expected) blocked this access.
<rdar://problem/42485581>
Created attachment 358274 [details] Patch
Comment on attachment 358274 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358274&action=review > Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:158 > +;; Silently deny unnecessary accesses caused by MessageUI framework. Is there a radar that tracks fixing this in MessageUI, so that we could remove the hack in the future? Silencing sandbox violations is not clean software design.
Comment on attachment 358274 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358274&action=review >> Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:158 >> +;; Silently deny unnecessary accesses caused by MessageUI framework. > > Is there a radar that tracks fixing this in MessageUI, so that we could remove the hack in the future? Silencing sandbox violations is not clean software design. Yes: I'll add the relevant radar to this comment so we know to remove it in the future.
Created attachment 358294 [details] Patch
Comment on attachment 358294 [details] Patch r=me assuming that you tested the fix. I do not know if MessageUI reads the preference using direct file access or via cfprefsd, and what this change would do in the latter case.
Comment on attachment 358294 [details] Patch Attachment 358294 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10622461 New failing tests: imported/w3c/web-platform-tests/webrtc/simplecall.https.html
Created attachment 358301 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Committed r239611: <https://trac.webkit.org/changeset/239611>