I have a similar problem. I’ve installed my Chrome extension in FF nightly. The only modification I’ve made so far is to add the applications->gecko key to my manifest.json.
I’ve added console log statements in some of my content scripts, but I don’t see them appearing anywhere. Also in the debugger pane, I only see the sources of the page, I don’t see any of my content or background scripts.
I guess I’ll try stripping things out until it shows up?
Okay quick update, I do see the console log statements appearing. But I still don’t see any of my content scripts or background scripts in the debugger->sources view. Nor do I see any error that would explain why things aren’t working!
Making a chrome extension work with Firefox required me to add an applications->gecko key to the manifest.json. I also noticed that the id had to be in an email format ("name@domain.com") or I would get a file is corrupt message while trying to load extension.
Secondly, the extension isn’t working as expected, but I have not found any way to troubleshoot the problem - In Chrome, I could right click on the extension popup and open the development tools for the popup. Not so in Firefox.
So did you find a solution? Or does anyone know how to troubleshoot extension code? The extension works perfectly in Chrome & Opera.
No, it’s still not working for me, and I just tested my extension in Firefox Developer Editiion v43.0a2 (2015-10-24)… The implementation of WebExtensions is not yet complete.
//* For testing, open the Browser Console
try {
//alert() is not actually supported in Firefox WebExtension background scripts.
//This forces the Browser Console open.
//This abuse of a misfeature works in FF49.0b+, not in FF48.
alert('Open the Browser Console.');
} catch(e) {
//alert() throws an error in Firefox versions below 49.
console.log('alert() threw an error. Probably Firefox version < 49.');
}
//*