Text encoding machinery is used by KURL, and KURL is used by workers. Patch forthcoming.
Created attachment 25244 [details] proposed patch
P1, because I've actually seen crashes because of this on Windows.
Comment on attachment 25244 [details] proposed patch > + AtomicallyInitializedStatic(Mutex*, mutex = new Mutex); I should have mentioned this long ago: Macros should use the all-capitals style. We should rename this one since we're using it more and more. At some point. Not this patch. r=me
Created attachment 25266 [details] now with more correctness built-in The previous patch was wrong in two ways - first, it caused deadlocks in text encoding registry, and second, it's not really correct to move codecs between threads, even if protected with locks.
Comment on attachment 25266 [details] now with more correctness built-in r=me
Committed revision 38597.