Bug 508109: Firefox allows installing hidden extensions. r=robstrong

This commit is contained in:
Dave Townsend 2009-09-18 15:11:26 +01:00
parent 124c9c8007
commit ce03ae329f
2 changed files with 2 additions and 16 deletions

View File

@ -325,7 +325,6 @@ function showView(aView) {
["description", "?description"],
["downloadURL", "?downloadURL"],
["isDisabled", "?isDisabled"],
["hidden", "?hidden"],
["homepageURL", "?homepageURL"],
["iconURL", "?iconURL"],
["internalName", "?internalName"],
@ -443,7 +442,6 @@ function showView(aView) {
["downloadURL", "?downloadURL"],
["incompatibleUpdate", "?incompatibleUpdate"],
["isDisabled", "?isDisabled"],
["hidden", "?hidden"],
["homepageURL", "?homepageURL"],
["iconURL", "?iconURL"],
["internalName", "?internalName"],

View File

@ -7359,9 +7359,9 @@ ExtensionsDataSource.prototype = {
"aboutURL", "iconURL", "internalName", "updateKey"];
// Items installed into restricted Install Locations can also be locked
// (can't be removed or disabled), and hidden (not shown in the UI)
// (can't be removed or disabled)
if (installLocation.restricted)
singleProps = singleProps.concat(["locked", "hidden"]);
singleProps = singleProps.concat(["locked"]);
if (installLocation.name == KEY_APP_GLOBAL)
singleProps = singleProps.concat(["appManaged"]);
for (var i = 0; i < singleProps.length; ++i) {
@ -7972,18 +7972,6 @@ ExtensionsDataSource.prototype = {
return null;
},
/**
* Get the em:hidden property. This prevents extensions from hiding
* extensions installed into locations other than restricted locations.
*/
_rdfGet_hidden: function EMDS__rdfGet_hidden(item, property) {
var id = stripPrefix(item.Value, PREFIX_ITEM_URI);
var installLocation = InstallLocations.get(this.getInstallLocationKey(id));
if (!installLocation || !installLocation.restricted)
return EM_L("false");
return null;
},
/**
* Get the em:locked property. This prevents extensions from locking
* extensions installed into locations other than restricted locations.