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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user