On 5/7/06, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
To what expect are protocol handlers expected to be threadsafe? In particular, should I be able to call newURI() on the IOService from off the main thread?
They are not expected to be threadsafe. You cannot call NewURI off the main thread.
The reason this comes up is that null principals have a URI member, and we _do_ need to be able to create principals off the main thread... At the moment, when I do this I get asserts about nsGnomeVFSProtocolHandler not being threadsafe.
As we discussed over IRC, you are going to have play thread proxy games unless you are sure that a particular protocol handler is threadsafe. -Darin _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
