Trick 17 with XUL and IE
And here is how you get the Mozilla control to work inside IE.
1. Unzip mozilla.zip to an appropiate location. The control is not part of the Mozilla or Firefox installer, so you need to get the zip file.2. Open a command line.
3. cd into Mozilla's installation directory.
4. Run "regsvr32 mozctlx.dll" Important: Note the "x" in the filename. Do NOT register the other dll which name does not include an "x".
5. If your XUL Application requires elevated privileges (e.g. XPConnect), edit defaults/pref/browser-prefs.js and add this line:
pref("signed.applets.codebase_principal_support", true);
6. Create a HTML file:
<body onload="Browser1.Navigate('http://some.com/app.xul')"
style="padding: 0px; margin: 0px; overflow: none"><object
classid="clsid:1339B54C-3453-11D2-93B9-000000000000"
id="Browser1"
width="100%" height="100%"
style="padding: 0px; margin: 0px; border: 0px"
></object></body>
7. Put this HTML file on a web server you control. Now open IE's options and add that web server to the list of trusted sites. Otherwise, IE won't run the Mozilla control. Uncheck the "requires https connection" checkbox as needed.
8. Close all IE instances and restart it. Then open the HTML file. The Mozilla control should now be loading.
This has been tested with Mozilla 1.7.11, IE 6 on XP SP2 (German).
Also note that the Google toolbar apparently clashes with the Mozilla control. You need to deactivate it before you can use the Mozilla control. Otherwise IE will crash (probably a symbol conflict).
Our not-so-tiny XUL application seems to work fine except for these issues:
1. The prompts (e.g. password prompt) look funny.
2. Dialogs seem to be blocked, although the application disables Mozilla's popup blocker (dom.disable_open_during_load). I need to investigate that further.
3. There appears to be no way to open the Javascript console, because we are not running under chrome. Even when running our application using Browser1.Navigate("chrome://..."), openDialog does not appear to work.
