Make sure we call the ProcessAssertion invalidation handler on the main thread. BKSProcessAssertion calls our invalidation handler on a background thread which leads to thread safety problems and crashes.
<rdar://problem/27399998>
Created attachment 284433 [details] Patch
Comment on attachment 284433 [details] Patch Still need to update the iOS simulator half of ProcessAssertionIOS.mm to use WTF::Function instead of std::function.
Committed r203687: <http://trac.webkit.org/changeset/203687>