From d9ee1249431e5f738cc3abc9569a24d13fef9292 Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Mon, 4 Mar 2002 14:44:31 +0000 Subject: [PATCH] Back out my previous checkin for bug 109081 because it cause bug 128659. R=n/a, SR=n/a, A=n/a git-svn-id: svn://10.0.0.236/trunk@115718 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsGlobalWindow.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 9bd4c0333ac..ddd08e2ca2f 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -2063,13 +2063,6 @@ GlobalWindowImpl::Focus() nsCOMPtr treeOwnerAsWin; GetTreeOwner(getter_AddRefs(treeOwnerAsWin)); if (treeOwnerAsWin) { - PRBool isEnabled = PR_TRUE; - treeOwnerAsWin->GetEnabled(&isEnabled); - if (!isEnabled) { - NS_WARNING( "Should not try to set the focus on a disabled window" ); - return NS_ERROR_FAILURE; - } - treeOwnerAsWin->SetVisibility(PR_TRUE); nsCOMPtr embeddingWin(do_GetInterface(treeOwnerAsWin)); if (embeddingWin) @@ -3420,16 +3413,8 @@ GlobalWindowImpl::Activate() */ nsCOMPtr treeOwnerAsWin; GetTreeOwner(getter_AddRefs(treeOwnerAsWin)); - if (treeOwnerAsWin) { - PRBool isEnabled = PR_TRUE; - treeOwnerAsWin->GetEnabled(&isEnabled); - if (!isEnabled) { - NS_WARNING( "Should not try to activate a disabled window" ); - return NS_ERROR_FAILURE; - } - + if (treeOwnerAsWin) treeOwnerAsWin->SetVisibility(PR_TRUE); - } nsCOMPtr presShell; mDocShell->GetPresShell(getter_AddRefs(presShell));