addon module

Addon

class Addon()

Installs addons by path and uninstalls by ID.

Addon.install(path, temporary=false)

Install a Firefox addon.

If the addon is restartless, it can be used right away. Otherwise a restart is required.

Temporary addons will automatically be uninstalled on shutdown and do not need to be signed, though they must be restartless.

Arguments
  • path (string) – Full path to the extension package archive.

  • temporary (boolean) – True to install the addon temporarily, false (default) otherwise.

Throws

UnknownError – If there is a problem installing the addon.

Returns

Promise.<string> – Addon ID.

Addon.uninstall(id)

Uninstall a Firefox addon.

If the addon is restartless it will be uninstalled right away. Otherwise, Firefox must be restarted for the change to take effect.

Arguments
  • id (string) – ID of the addon to uninstall.

Throws

UnknownError – If there is a problem uninstalling the addon.

Returns

Promise