зеркало из https://github.com/mozilla/gecko-dev.git
Bug 326274 - <em:type>2</em:type> In install.rdf Breaks reinstallation. r=mconnor
This commit is contained in:
Родитель
8e0287416a
Коммит
7f539c548c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче