huazilin wrote:
Are there three methods in What your above suggestion or one method
,but need three steps for eventually solve the problem?
There are two problems that need to be solved:
1) How to get the security manager to allow creation of a JS wrapper for you
C++ object.
2) How to expose a constructor for that object to JS.
To solve #1, you need to either have classinfo or implement
nsISecurityCheckedComponent appropriately.
To solve #2, you want to attach a constructor to the global object.
If you have time and have some
implementing examples send to me ,I will appreciate you very very much.
The XMLHttpRequest implementation in Gecko 1.8.0.x _is_ an implementation
example.
May be you could give me a simple example
There isn't one that I know of...
-Boris
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom