According to www.mozilla.org/scriptable/faq.html#i12 , when a native method called from Javascript expects nsIFoo but gets passed a JS object such as {} or [], the JS object gets wrapped as if it implemented the required interface. Is it possible for the native C++ code to detect that it doesn't have a genuine nsIFoo so it can enforce the requirement that objects passed to it be genuine nsIFoo objects. Or to do this would the xpconnect code need to be changed somehow?

Thanks,
Jonathan
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to