laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 259 forks source link

Addons doesn't work #601

Open Kados opened 7 years ago

Kados commented 7 years ago

versions

Steps to reproduce the issue

Follow the tutorial to install an addon on SlimerJS: https://docs.slimerjs.org/current/manual/addons.html It works on SlimerJS 0.9.6 and Firefox 38, but it doesn't with SlimerJS 0.10.* and Firefox 38+.

One of the commit between 0.9.6 and 0.10.0 broke something.

Kados commented 7 years ago

Found what was wrong, but have another error now:

You have to reset the pref in Mozilla.cfg in your prefs.js in your profile of extensions.defaultProviders.enabled to true: lockPref('extensions.defaultProviders.enabled', true);

I now have one plugin that work, not the other one. Il appears as enabled, but it doesn't work and I have this error in the logs:

A coding exception was thrown in a Promise resolution callback.
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise

Full message: TypeError: target is null
Full stack: create@resource://gre/modules/commonjs/sdk/frame/utils.js:52:7
@resource://gre/modules/commonjs/sdk/addon/window.js:32:13
CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:129:18
startup/<@resource://gre/modules/commonjs/sdk/addon/runner.js:66:19
Handler.prototype.process@resource://gre/modules/Promise-backend.js:866:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise-backend.js:745:7

The plugin works correctly in Firefox, I just have this error with SlimerJS.