Bug 335916 - Locale packs <em:type>8</em:type> don't register chrome. r=bsmedberg

This commit is contained in:
rob_strong%exchangecode.com 2006-05-02 18:12:41 +00:00
Родитель 1c4364a6b5
Коммит 540d2396c4
1 изменённых файлов: 9 добавлений и 5 удалений

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

@ -2915,10 +2915,10 @@ ExtensionManager.prototype = {
InstallLocations.get(KEY_APP_GLOBAL),
installData.type);
installer._installExtensionFiles(file);
if (installData.type == nsIUpdateItem.TYPE_EXTENSION)
installer.upgradeExtensionChrome();
else
if (installData.type == nsIUpdateItem.TYPE_THEME)
installer.upgradeThemeChrome();
else
installer.upgradeExtensionChrome();
},
/**
@ -3342,7 +3342,9 @@ ExtensionManager.prototype = {
// If we have extensions that were installed before the new flat chrome
// manifests, and are still valid, we need to manually create the flat
// manifest files.
var extensions = this._getActiveItems(nsIUpdateItem.TYPE_EXTENSION);
var extensions = this._getActiveItems(nsIUpdateItem.TYPE_EXTENSION +
nsIUpdateItem.TYPE_LOCALE +
nsIUpdateItem.TYPE_PLUGIN);
for (var i = 0; i < extensions.length; ++i) {
var e = extensions[i];
var itemLocation = e.location.getItemLocation(e.id);
@ -3934,7 +3936,9 @@ ExtensionManager.prototype = {
//
// To do this we obtain a list of active extensions and themes and write
// these to the extensions.ini file in the profile directory.
var validExtensions = this._getActiveItems(nsIUpdateItem.TYPE_EXTENSION);
var validExtensions = this._getActiveItems(nsIUpdateItem.TYPE_EXTENSION +
nsIUpdateItem.TYPE_LOCALE +
nsIUpdateItem.TYPE_PLUGIN);
var validThemes = this._getActiveItems(nsIUpdateItem.TYPE_THEME);
var extensionsLocationsFile = getFile(KEY_PROFILEDIR, [FILE_EXTENSION_MANIFEST]);