Bug 500976 - PlacesController.prototype._shouldShowMenuItem should not depend on bug 232598. r=sdwilsh

This commit is contained in:
Dão Gottwald 2009-06-28 18:04:18 +02:00
parent 2393c97c87
commit 160cc9f85c

View File

@ -546,11 +546,14 @@ PlacesController.prototype = {
if (selectiontype == "single" && aMetaData.length != 1)
return false;
var forceHideRules = aMenuItem.getAttribute("forcehideselection").split("|");
for (var i = 0; i < aMetaData.length; ++i) {
for (var j=0; j < forceHideRules.length; ++j) {
if (forceHideRules[j] in aMetaData[i])
return false;
var forceHideAttr = aMenuItem.getAttribute("forcehideselection");
if (forceHideAttr) {
var forceHideRules = forceHideAttr.split("|");
for (var i = 0; i < aMetaData.length; ++i) {
for (var j=0; j < forceHideRules.length; ++j) {
if (forceHideRules[j] in aMetaData[i])
return false;
}
}
}