Say I have two addons foo.xpi
and bar.xpi
that have similar/related/overlapping functionality and I want to replace them with an addon foobar.xpi
that joins the functionality of both. Preferably, the transition should happen by the standard update process.
Will this work as expected if I simply make the <em:updatelink>
of both old addons point to the new addon? I am tempted to think so, but can think of a myriad of problems:
I suppose that I at least have to make the version number of foobar larger than the max of the versions of foo and bar, don’t I?
But will the changing id pose problems? E.g., I fear that someone with foobar installed might still be able to additionally (re-) install foo and/or bar.
How will install()
and uninstall()
of old and new bootstrap.js be invoked? In particular, what happens if someone happens to have both of the old addons installed upon upgrade?
So maybe I am all on the wrong track and there is a better way to achieve what I intend?