fix for bug 78427, r=dr, sr=hyatt. Fix for focus getting lost when clicking on a link from a page with an iframe, like cnn or washingtonpost.com. When the new page loads, it will now have correct focus, it won't be lost.

git-svn-id: svn://10.0.0.236/trunk@95390 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com
2001-05-18 08:58:17 +00:00
parent 4a5080b84c
commit 0f4bc733b6

View File

@@ -2218,15 +2218,6 @@ nsDocShell::Destroy()
if (docShellParentAsNode)
docShellParentAsNode->RemoveChild(this);
if (mScriptGlobal) {
nsCOMPtr<nsIFocusController> focusController;
nsCOMPtr<nsPIDOMWindow> ourWindow = do_QueryInterface(mScriptGlobal);
ourWindow->GetRootFocusController(getter_AddRefs(focusController));
if (focusController) {
focusController->SetFocusedWindow(nsnull);
}
}
if (mContentViewer) {
mContentViewer->Destroy();
mContentViewer = nsnull;