It is not needed anymore.
Created attachment 228894 [details] patch
Created attachment 228895 [details] patch
<rdar://problem/6330124>
Comment on attachment 228895 [details] patch You can also remove the #include for the spin lock.
Comment on attachment 228895 [details] patch Seems we can't do this yet since WebKit2 UI process side uses WebCore::ResourceRequest which uses AtomicStrings. :(
(In reply to comment #5) > (From update of attachment 228895 [details]) > Seems we can't do this yet since WebKit2 UI process side uses WebCore::ResourceRequest which uses AtomicStrings. :( The old lock does not protect that. Neither the refcount nor the flags are thread safe. The lock was a hack for a specific code path into AtomicString.