The GitX app is using WebCore on a different thread than the main thread. This results in crashes because WebKit is a main-thread only API. This patch implements a MAC only hack to make GitX less crashy by forcing the use of the JSLock when entering the JSC VM if the app bundle is GitX.
<rdar://problem/17008429>
GitX bug: <http://gitx.lighthouseapp.com/projects/17830-gitx/tickets/321-gitx-sometimes-crashes-beneath-pbwebhistorycontroller-preferenceschanged-on-a-secondary-thread>.
Created attachment 232266 [details] the patch.
Comment on attachment 232266 [details] the patch. Alexey and MarkR discovered that this was a temporary regression caused by a notification firing on a secondary thread. We don't need this workaround. We need the notification to fire on the main thread instead.