Bug 396695 - add-ons go into 'needs to restart' loop commonly after a firefox update (minimal patch). r=sspitzer, r=dveditz, approvalM9=beltzner, blocking-firefox3=mconnor

This commit is contained in:
rob_strong@exchangecode.com 2007-10-24 14:31:33 -07:00
parent 52cba9f35f
commit 64edd21aeb

View File

@ -7023,16 +7023,6 @@ ExtensionsDataSource.prototype = {
{
// Update the Extensions datasource
this.setTargetApplicationInfo(id, targetAppID, minVersion, maxVersion, null);
var installLocation = InstallLocations.get(this.getInstallLocationKey(id));
if (installLocation.name != KEY_APP_PROFILE)
return;
var installManifestFile = installLocation.getItemFile(id, FILE_INSTALL_MANIFEST);
// Only update if the item exists and we can write to the location
if (installManifestFile.exists() && installLocation.canAccess)
this.setTargetApplicationInfo(id, targetAppID, minVersion, maxVersion,
getInstallManifest(installManifestFile));
},
/**