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:
Родитель
59922a25dd
Коммит
044c36e5e2
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче