javascript - How to test firefox plugin locally - Stack Overflow

I have a basic Google Chrome extension which needs to be ported to Firefox. I uploaded the .crx file to

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 downloaded the the generated xpi file and tried to install it locally but without any success. It tell that the plugin is invalid or corrupted.

Another method that I tried is I ported the extension using chrome-tailor and generated the xpi. I am able to install the extension in this but the content scripts are not injected and the extension doesn't work as expected.

I want to install it in Firefox and test it. I have also set xpinstall.signatures.required to false.

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 downloaded the the generated xpi file and tried to install it locally but without any success. It tell that the plugin is invalid or corrupted.

Another method that I tried is I ported the extension using chrome-tailor and generated the xpi. I am able to install the extension in this but the content scripts are not injected and the extension doesn't work as expected.

I want to install it in Firefox and test it. I have also set xpinstall.signatures.required to false.

Share Improve this question edited Dec 12, 2016 at 18:27 serv-inc 38.4k9 gold badges191 silver badges212 bronze badges asked Aug 21, 2016 at 17:27 user1032317user1032317 4
  • 1 Are you saying that you submitted it to Mozilla without bothering to test it first to see if it works? – Makyen Commented Aug 21, 2016 at 19:08
  • We could guess at what your problem is, but without code, a minimal reproducible example, there is no way for us to actually know what the problem really is. Please edit the question to include enough information for us to duplicate the problem. At an absolute minimum, we would need a pointer to somewhere we could download your extension. However, even with such a pointer, without code actually in the question, this question is off-topic. – Makyen Commented Aug 21, 2016 at 19:11
  • 1 What exactly was shown in the Browser Console (Ctrl-Shift-J, or Cmd-Shift-J on OSX) when you tried to install the extension? – Makyen Commented Aug 21, 2016 at 19:15
  • 1 Have you attempted to install it as a Temporary Extension from about:debugging? – Makyen Commented Aug 21, 2016 at 19:18
Add a ment  | 

1 Answer 1

Reset to default 5

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.

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 patibility" 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"

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745375266a4624968.html

相关推荐

  • javascript - How to test firefox plugin locally - Stack Overflow

    I have a basic Google Chrome extension which needs to be ported to Firefox. I uploaded the .crx file to

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信