зеркало из https://github.com/mozilla/pjs.git
Bug 335916 - Locale packs <em:type>8</em:type> don't register chrome. r=bsmedberg
This commit is contained in:
Родитель
1c4364a6b5
Коммит
540d2396c4
|
@ -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]);
|
||||
|
|
Загрузка…
Ссылка в новой задаче