зеркало из https://github.com/mozilla/gecko-dev.git
Bug 305833. Context menu on bookmark right click is dead. r=mats, sr=bryner
This commit is contained in:
Родитель
593a54edcc
Коммит
912a94a7dc
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче