Bug 326274 - <em:type>2</em:type> In install.rdf Breaks reinstallation. r=mconnor

This commit is contained in:
rob_strong%exchangecode.com 2006-02-08 17:09:51 +00:00
Родитель 8e0287416a
Коммит 7f539c548c
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -660,9 +660,12 @@ function getManifestProperty(installManifest, property) {
* returns TYPE_EXTENSION if attempts to determine the type fail.
*/
function getAddonTypeFromInstallManifest(installManifest) {
var type = getManifestProperty(installManifest, "type");
if (type !== undefined)
return type;
var target = installManifest.GetTarget(gInstallManifestRoot,
gRDF.GetResource(EM_NS("type")), true);
if (target) {
var type = stringData(target);
return type === undefined ? intData(target) : parseInt(type);
}
// Firefox 1.0 and earlier did not support addon-type annotation on the
// Install Manifest, so we fall back to a theme-only property to