Hi,
a got a few more question regarding the XPCOM
hello example posted here a some days ago:
1. Obtaining the XPConnect privilege
When serving the HTML page from a webserver, i.e.
using the HTTP protocol, the UniversalXPConnect
privilege
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
cannot be granted. That sux! I am aware that granting
privileges requires signed scripts like with Netscape 4.
But one cannot sign scripts with Netscape 6 yet. With
the Hello JS component that won't be a problem while
testing. But our final target will be a scriptable
plug-in (which has to be a XPCOM component from my
knowledge). Will we really have to use a signed JavaScript
to script our plug-in? Or is the above mentioned privilege
only necessary when scripting JavaScript XPCOM components?
2. Defining event handlers
Is XPConnect bidirectional? Can the Hello JS XPCOM component
fire events that are dispatched to the JavaScript context?
If so, let's say I want to fire an event called 'MyEvent'.
How to I modify nsIHello.idl, nsHello.js and the embedding
HTML page?
TIA - Regards, Tobias Trelle
--
CyCo Systems GmbH & Co. KG >>> http://www.cycosys.com/