ActiveX: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(merge portions of WMP, remove overly technical info)
(i think this info only applies to really old builds, so i'm removing it)
Line 8: Line 8:
**''All other Firefox releases'': Install the plug-in for your specific version of Firefox.  
**''All other Firefox releases'': Install the plug-in for your specific version of Firefox.  
**''Seamonkey 1.0'': Install the plug-in for Firefox 1.5.[http://plugindoc.mozdev.org/windows-all.html#ActiveX].
**''Seamonkey 1.0'': Install the plug-in for Firefox 1.5.[http://plugindoc.mozdev.org/windows-all.html#ActiveX].
* Exit the browser.
* Restart the browser.
* Download the [ftp://ftp.netscape.com/pub/netscape7/english/7.2/windows/win32/bfkprv/browser.xpi browser.xpi] file from Netscape's ftp site. Do not click on the link. Instead, right-click it and select "Save Link As..." Rename it to <tt>browser.zip</tt>, open the ZIP file, and extract the <tt>npmozax.dll</tt> file to the <tt>plugins</tt> folder of your Mozilla Suite or Firefox [[Installation directory]]. The file will be located within the ZIP file under the ZIP's <tt>plugin</tt> folder. [http://forums.mozillazine.org/viewtopic.php?p=818017#818017]
* It it also recommended that you edit <tt>activex.js</tt> and replace it with the text below to enable only Windows Media Player to run unless you need to run other ActiveX controls. The <tt>activex.js</tt> file is located in your [[installation directory]] <tt>\defaults\pref</tt> folder.
pref("general.useragent.vendorComment", "ax");
pref("security.xpconnect.activex.global.hosting_flags", 9);
pref("security.classID.allowByDefault", false);
pref("capability.policy.default.ClassID.CID6BF52A52-394A-11D3-B153-00C04F79FAA6", "AllAccess");
pref("capability.policy.default.ClassID.CID22D6F312-B0F6-11D0-94AB-0080C74C7E95", "AllAccess");


===Caveats===
===Caveats===

Revision as of 04:39, 1 May 2007

ActiveX is the system Internet Explorer uses in place of the NPAPI system that all other browsers use to embed other applications inside themselves. Some sites explicitly specify the use of an ActiveX control (generally, for Windows Media Player) and will not render in a browser without ActiveX support. For this reason, a third-party ActiveX plugin that adds partial ActiveX support to some Mozilla-based browsers has been created.

Installing the ActiveX plugin on Windows

The ActiveX plug-in is currently only available for Firefox 1.5 and below. Don't even try installing it in Firefox 2.0; it won't work.

  • Install the correct version of the Mozilla ActiveX plugin
    • Firefox 1.5.0.x: Install the plug-in for Firefox 1.5.
    • All other Firefox releases: Install the plug-in for your specific version of Firefox.
    • Seamonkey 1.0: Install the plug-in for Firefox 1.5.[1].
  • Restart the browser.

Caveats

  • If you use the Adblock extension, you need to disable the Obj-Tabs setting. Otherwise, the ActiveX plugin will run almost any ActiveX control regardless of how it is configured. Potential fixes are being discussed in Bug 340852 and may be included in furture Mozilla browser releases.
  • For some versions of the ActiveX plugin, the Flash plugin will not load unless it was already loaded after you install the ActiveX plugin. You will need to reload the plugins by typing about:plugins into your Location Bar upon starting Firefox.
  • If you later update your browser, the ActiveX plugin will likely remain installed and it may not be compatible with the new browser version. You should uninstall the ActiveX plugin before upgrading your browser, unless it is known to work with the next version.

Uninstalling the ActiveX plugin on Windows

  • Close all instances of your browser.
  • Go to the installation directory.
  • Go into the plugins folder and delete the file npmozax.dll.
  • Go back to the installation folder, and then go into the components folder, and delete the files nsIMozAxPlugin.xpt and nsAxSecurityPolicy.js.
  • Go back to the installation folder, and then go into the \defaults\pref folder and delete the file activex.js.

Linux (x86)

Recent versions of CrossOver Office ship with the Mozilla ActiveX plugin, but don't expect it to work as well as it would on Windows.

Testing the ActiveX plugin

Once you have installed WMP and ActiveX, you can test it on this site. If you can play both the audio and video players, the ActiveX plugin is installed and working.

See also