mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
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:
parent
228d38d67d
commit
03c9b2e9a7
@ -4252,6 +4252,14 @@ ExtensionManager.prototype = {
|
||||
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
|
||||
ds.removeItemMetadata(id);
|
||||
|
Loading…
Reference in New Issue
Block a user