Skip to content Skip to sidebar Skip to footer

How To Test Firefox Plugin Locally

I have a basic Google Chrome extension which needs to be ported to Firefox. I uploaded the .crx file to the Firefox marketplace and it got accepted but is under review rightnow. I

Solution 1:

WebExtensions

To test WebExtension based add-ons, they are usually loaded as a "Temporary Installation in Firefox"

That MDN page describes how to temporarily install a WebExtensions (i.e. similar code to Chrome) in Firefox. The gist of it is:

  1. Navigate to about:debugging
  2. Click the button "Load Temporary Add-on"
  3. Use the file selection dialog to select the manifest.json file, or packaged .xpi file for the extension.

Load a temporary add-on

Note on testing WebExtensions: The WebExtensions API is still in development. For now, you are probably best off developing and testing your WebExtension add-on with Firefox Developer Edition, or Firefox Nightly. You should also make careful note of what version of Firefox is required for the functionality you desire to use. This information is contained in the "Browser compatibility" section of the MDN documentation pages.

Firefox Add-on SDK

To test Firefox Add-on SDK based ad-ons, use jpm run. You might want to take a look at this answer to "jpm run does NOT work with Firefox 48, or later"

Post a Comment for "How To Test Firefox Plugin Locally"