mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 500976 - PlacesController.prototype._shouldShowMenuItem should not depend on bug 232598. r=sdwilsh
This commit is contained in:
parent
2393c97c87
commit
160cc9f85c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user