ra wrote:
    var myplugin = document.getElementById("myId");
    myplugin.func(25);

This is done by adding the scriptable plug-in's JS object to the prototype chain of the element's JS object. See nsHTMLPluginObjElementSH::SetupProtoChain in nsDOMClassInfo.cpp.

   nsCOMPtr<nsIMyPlugin> myplugin = do_QueryInterface(elem, &rv);

In the last line I can't  query the interface. The return value rv is
0x80004002 (NS_NOINTERFACE). But the interface is there, since it is
callable from java-script.

Not at all.  The interface is in fact not there on the element itself.

-Boris
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to