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

make sure we set the focused element to null after the viewer is totoally torn down, and after we've suppressed focus


git-svn-id: svn://10.0.0.236/trunk@96029 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com
2001-05-29 23:26:50 +00:00
parent ac17b69951
commit 2ded545a76

View File

@@ -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;