Jon Smirl wrote: > Is this possible? Bring down a Javascript component from the web, register > it in-memory on systems without write access (or in-memory on all systems), > be able to CreateInstance on it, and then just have the registration go poof > when Mozilla exits. How is createInstance going to find it, give it a > reference to the .js file in the cache? At what stage will the registry > error out from not having write access?
You'd have to do the XPConnect magic to get a factory object yourself (see mozJSComponentLoader.cpp), and the call RegisterFactory on the component manager. No file references are used, no registry writing is performed. Mike
