If you you want to enable other controls or switch to a blacklist mode see the notes concerning the activex.js policy file on:
http://www.iol.ie/~locka/mozilla/plugin.htm
Dave Murray Glasgow, UK PGP KeyID: 0x838592B3
Remove NOSPAM from my email address to reply.
bryan wrote:
Hi,
I try to come up with a solution to port our ActiveX control (C++, ATL) to Mozilla. The ActiveX control draw to printer dc and print out some reports. The solutions I found are
1. ActiveX Plugin for Mozilla:
I downloaded and used the ActiveX plugin from "Plug-in For Hosting ActiveX Controls" at http://www.iol.ie/~locka/mozilla/plugin.htm. And with some minor changes regarding cookies, it works wonderfully in Mozilla 1.7.3. However I do have some questions regarding this
a. Why does it requires different version of plugin for different version of mozilla/firefox?
b. In FireFox 1.0, the plugin ships in a whitelist (media player only) mode. Is it possible to enable other controls from xpi?
2. XPCOM
I also compiled mozilla 1.7.3 and tested the XPCom sample "nsISample". The problem I have here is netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); keep giving denied UniversalXPConnect privileges error
3. plugin
I also tested some sample from plugin sdk ("scriptable" sample). the client scripts look like this:
<embed type="application/scriptable-plugin" width=600 height=40><br> <script> var embed = document.embeds[0]; embed.foo() </script>
Seems that this solution doesn't have any security issue, as long as I can put the plugin into browser's plugin dir (using xpi, i guess). Plus, I tested it in several versions of mozilla/firefox, and they all work fine with just one version of plugin dll. So, if I to use this solution to wrap my activex, what kind of problems would I expect to have?
In all, I encountered some problems/questions in each solutions. Any help would be greatly appreciated.
Bryan
_______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
