EngineeringProductivity/HowTo/SignExtensions: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 43: Line 43:
=== Use Temporary Addons ===
=== Use Temporary Addons ===
If you absolutely must use an addon, there is a way to work around signing via temporary addons. Temporary addons have a few limitations:
If you absolutely must use an addon, there is a way to work around signing via temporary addons. Temporary addons have a few limitations:
1. They must be [https://developer.mozilla.org/en-US/Add-ons/Bootstrapped_extensions bootstrapped]
 
2. They'll get uninstalled on Firefox restart
* They must be [https://developer.mozilla.org/en-US/Add-ons/Bootstrapped_extensions bootstrapped]
3. They can't be installed via the profile (you'll need to be able to run chrome JS)
* They'll get uninstalled on Firefox restart
* They can't be installed via the profile (you'll need to be able to run chrome JS)


If those restrictions don't bother you, you can use the `[https://dxr.mozilla.org/mozilla-central/rev/d848a5628d801a460a7244cbcdea22d328d8b310/toolkit/mozapps/extensions/AddonManager.jsm#2236AddonManager.installTemporaryAddon()]` API to install them. You'll need a way to run chrome privileged JS to install it. Alternatively, there's also a [http://marionette-client.readthedocs.org/en/latest/reference.html#addons marionette API] to install it. For example:
If those restrictions don't bother you, you can use the `[https://dxr.mozilla.org/mozilla-central/rev/d848a5628d801a460a7244cbcdea22d328d8b310/toolkit/mozapps/extensions/AddonManager.jsm#2236AddonManager.installTemporaryAddon()]` API to install them. You'll need a way to run chrome privileged JS to install it. Alternatively, there's also a [http://marionette-client.readthedocs.org/en/latest/reference.html#addons marionette API] to install it. For example:
Confirmed users
656

edits