I had to leave this for some time, and then I had to consider implementing this with a plugin (an order from above), but I decided the plugin way was more confusing (please, correct me if I'm wrong). Now I'm back on it.
I was working over the XMLHttpRequest because it's implemented in C++, but there is some code I don't understand and I was trying to guess. The only thing that worries me is what is told in this thread http://groups.google.es/group/mozilla.dev.tech.xpcom/browse_thread/thread/1d914272653ee02b/ff5d7649b60fad21?lnk=raot#ff5d7649b60fad21 about the XPConnect doing garbage collection while the object is still alive. I need to be sure it will work when I do all the hard work creating component. > But seriously, it shouldn't be > too hard to just document the implementation of window.sidebar. sure, it takes just two minutes to realize that the code from this line: http://lxr.mozilla.org/mozilla1.8.0/source/xpfe/components/sidebar/src/nsSidebar.js#306 until line 394 is what you need to register your component as a javascript dom object . I also understand, in general, what is being done there (The component implements the classInfo interface and shows itself as a DOM object to the component manager), but i was trying to understand it line to line. But my problem is with the C++ version, where things aren't as clear as in the sidebar implementation. timeless ha escrito: > Mitchi wrote: > > Sure. As soon as i can solve the problem (I hope I'll solve it), i'll > > write down a step by step tutorial. > > We're still waiting for your tutorial. > > (not that window.sidebar is good code or anything, because it isn't.) _______________________________________________ dev-security mailing list dev-security@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-security