Trying to copy/paste from mozilla (to mozilla or another application) cause hangs.
Created attachment 89241 [details] patch to fix the problem The hang happen on the return;. So I guessed nsString was trying to free again the adopted string when going out of scope. Jag on #mozilla confirmed that you dont need to free the adopted string. This definately fix the hang, I hope it's ok.
Created attachment 89321 [details] [diff] [review] patch that cleans up style Thanks! I'll check in this obvious patch. (duh, my bad.)