Hi mozillians,
In my addon,
I try to uninstall an old addon given its ID.
/////////////////////////////////////////////////////////////
// gotInfoAndRemove
/////////////////////////////////////////////////////////////
function /*callback*/ gotInfoAndRemove(/*ExtensionInfo*/ info) {
console.log("We can remove this addon ...");
var my_id = "" + info.id;
browser.management.uninstall(my_id);
When I test it on FF 57 development Edition there is an error in the console that indicates this function is missing
The exact message is :
browser.management.uninstall is not a function
After verification, the MDN documentation indicates this method does not exists for Firefox.
So how should I proceed to uninstall an addon given its ID ?
Thanks in advance.