Bug 305296 Extensions installed using a file pointer can't be uninstalled using the ui even though uninstall is not disabled. r=bsmedberg, a=cbeard

This commit is contained in:
rob_strong%exchangecode.com 2005-08-22 22:43:28 +00:00
parent 228d38d67d
commit 03c9b2e9a7

View File

@ -4252,6 +4252,14 @@ ExtensionManager.prototype = {
return; return;
} }
} }
else if (installLocation.name == KEY_APP_PROFILE ||
installLocation.name == KEY_APP_GLOBAL) {
// Check for a pointer file and remove it if it exists
var pointerFile = installLocation.location.clone();
pointerFile.append(id);
if (pointerFile.exists() && !pointerFile.isDirectory())
pointerFile.remove(false);
}
// Clean the item resource // Clean the item resource
ds.removeItemMetadata(id); ds.removeItemMetadata(id);