Code: Select all
uninstallObserver :{
observe : function(aSubject,aTopic,aData){
if(aTopic == "quit-application" && Common.uninstall == true) {
Common.rrPrefBranch.clearUserPref("firstrun");
Services.prefs.setBoolPref("extensions.moonbat.status",true);
Common.rrPrefBranch.deleteBranch("");
}
}
}
}
Whether I do a nsIPrefBranch.clearUserPref (as here) or just setBoolPref to true (the default value), the firstrun variable remains in about:config after uninstalling
and restarting. The same goes for any other preference of the extension that I have. rrPrefBranch here is the nsiPrefBranch starting from my extension under "extensions.extensionname".
I've tried directly deleting the branch using Services.prefs.deleteBranch("extensions.recordrewind.") as well to no effect.