Entering the NSApplication run loop initializes a number of subsystems that we don't need, and thus needs a less strict sandbox than necessary.
Created attachment 183053 [details] proposed patch
Comment on attachment 183053 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=183053&action=review > Source/WebCore/platform/mac/RunLoopMac.mm:36 > +void RunLoop::setUseApplicationRunLoopOnMainRunLoop() > +{ > + s_useApplicationRunLoopOnMainRunLoop = true; > +} Can we assert that the main run loop has not yet been created here?
Committed <http://trac.webkit.org/changeset/139985>. > Can we assert that the main run loop has not yet been created here? Sadly not without some major refactoring, the main run loop is created very early, before we know what kind of process it is.