javascript - How to work around the Firefox SDK bug where uninstall is never called as a reason -
according firefox add-on sdk documentation here: listening load , unload
when trying run following function acts listener when user disables or uninstalls add-on if reason parameter string "uninstall" never called. example follows:
exports.onunload = function (reason) { if(reason === 'uninstall') { tabs.open("http://www.google.com"); } };
as mentioned code never run when reason string uninstall bugged , not work. wondering if knew work around specific bug can redirect user specific url when uninstall add-on.
this because unload done first. on purpose prevent addon developer malicious intent doing bad things if user chooses uninstall addon. far know there no way work around strictly within addon.
Comments
Post a Comment