Right-click on an overflow:auto div with content smaller than the div should

not focus it.  Bug 296259, patch by moz_bug_r_a4@yahoo.com, r=aaronlev, sr=roc
This commit is contained in:
bzbarsky%mit.edu 2006-03-06 05:18:52 +00:00
Родитель 59922a25dd
Коммит 044c36e5e2
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -358,7 +358,8 @@ XULPopupListenerImpl::FireFocusOnTargetContent(nsIDOMNode* aTargetNode)
nsIFrame* currFrame = targetFrame;
// Look for the nearest enclosing focusable frame.
while (currFrame) {
if (currFrame->IsFocusable()) {
PRInt32 tabIndexUnused;
if (currFrame->IsFocusable(&tabIndexUnused, PR_TRUE)) {
newFocus = currFrame->GetContent();
nsCOMPtr<nsIDOMElement> domElement(do_QueryInterface(newFocus));
if (domElement) {