Bug 305833. Context menu on bookmark right click is dead. r=mats, sr=bryner

This commit is contained in:
aaronleventhal%moonset.net 2005-09-01 18:18:08 +00:00
Родитель 593a54edcc
Коммит 912a94a7dc
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -4054,10 +4054,10 @@ IsFocusable(nsIPresShell* aPresShell, nsIContent* aContent)
// We don't use nsIFrame::IsFocusable() because it defaults
// tabindex to -1 for -moz-user-focus:ignore (bug 305840).
if (aContent->IsContentOfType(nsIContent::eXUL)) {
PRBool tabIndex = 0;
return focusFrame->AreAncestorViewsVisible() &&
focusFrame->GetStyleVisibility()->IsVisible() &&
aContent->IsFocusable(&tabIndex);
// XXX Eventually we should have a better check, but for
// now checking for style visibility and focusability caused
// too many regressions.
return focusFrame->AreAncestorViewsVisible();
}
if (aContent->Tag() != nsHTMLAtoms::area) {