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
.
- 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
1 Answer
Reset to default 5WebExtensions
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:
- Navigate to
about:debugging
- Click the button "Load Temporary Add-on"
- 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
评论列表(0条)