mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 508109: Firefox allows installing hidden extensions. r=robstrong
This commit is contained in:
parent
124c9c8007
commit
ce03ae329f
@ -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"],
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user