-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install temporary addon #125
Comments
Hi @fregante ,
I hope it helps (... but not tested myself) |
Unfortunately that hasn't worked for a couple of years since Firefox requires Addons to be signed. The only way I'm aware of is to open Firefox first and then request the installation via WebDriver, which is not ideal. |
whereas extensions added via firefox-profile -o ffprofile -e path/to/extension
/Applications/Firefox.app/Contents/MacOS/firefox-bin -profile ffprofile |
I'm leaving it open for reference, but this is just not possible anymore. Firefox requires an RDP call to install unsigned extensions, it can't be done via profile. |
@fregante I am not facing the same issue and am unable to load any extension. Have you been able to find a workaround? |
See my previous comment: it's not possible, use |
For reference, I ended up using WebdriverIO to inject a temporary extension at runtime via: const extension = await fs.readFile(path.resolve(__dirname, '..', `runme-firefox-v${pkg.version}.xpi`))
await browser.installAddOn(extension.toString('base64'), true) |
Firefox only allows signed addons to be installed permanently so I wonder if there's any way for this module to install addons. The source mentions possible installs from a directory (not just an xpi) but I think it only works for Firefox Developer
firefox-profile-js/lib/firefox_profile.js
Line 576 in 08a4e4c
firefox-profile-js/README.md
Line 79 in 08a4e4c
web-ext
seems to be installing the extension after opening the browser:https://github.com/mozilla/web-ext/blob/8bd0d13f425bbaed6cfc2f8127883c5c43010f1d/src/firefox/remote.js#L139-L143
Is there any other way for unsigned/local/unpacked addons?
The text was updated successfully, but these errors were encountered: