We're doing too much from secondary thread. We need it to avoid being blocked on WebProcess, but not to manipulate UI process objects.
Created attachment 121484 [details]
I'm not sure if I'm using the right magic to deallocate on main thread (do we need the first part in WK2?)
Comment on attachment 121484 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=121484&action=review
> ++ (void)initialize
> + WebCoreObjCFinalizeOnMainThread(self);
I think this is not necessary in WebKit2.
> + ASSERT(isMainThread()); // This funciton calls the client, which should only be done on main thread.
Committed <http://trac.webkit.org/changeset/104334>. Removed WebCoreObjCFinalizeOnMainThread.
Oops, didn't see this before landing.