fix for 82710, r=me, sr=hyatt, a=mcafee (blocker)

This commit is contained in:
saari%netscape.com 2001-05-29 23:26:50 +00:00
Родитель 13f4b7f55a
Коммит 0b11af5980
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -3912,6 +3912,8 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
// Suppress the command dispatcher.
focusController->SetSuppressFocus(PR_TRUE,
"Win32-Only Link Traversal Issue");
// Remove focus from the element that has it
focusController->SetFocusedElement(nsnull);
}
}
@ -3956,11 +3958,9 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
// See the book I wrote above regarding why the focus controller is
// being used here. -- hyatt
if (focusController) {
focusController->SetFocusedElement(nsnull);
if (focusController)
focusController->SetSuppressFocus(PR_FALSE,
"Win32-Only Link Traversal Issue");
}
mContentViewer = aNewViewer;