Bug 1334981 - Backed out changeset d6ca24ba3673 for regression caused by
bug 887718. r=enndeakin, a=RyanVM
MozReview-Commit-ID: 9hIcRVRseO1
--- a/dom/base/nsFocusManager.cpp
+++ b/dom/base/nsFocusManager.cpp
@@ -737,19 +737,17 @@ nsFocusManager::WindowRaised(mozIDOMWind
docShellAsItem->GetTreeOwner(getter_AddRefs(treeOwner));
nsCOMPtr<nsIBaseWindow> baseWindow = do_QueryInterface(treeOwner);
if (baseWindow) {
bool isEnabled = true;
if (NS_SUCCEEDED(baseWindow->GetEnabled(&isEnabled)) && !isEnabled) {
return NS_ERROR_FAILURE;
}
- if (!sTestMode) {
- baseWindow->SetVisibility(true);
- }
+ baseWindow->SetVisibility(true);
}
// If this is a parent or single process window, send the activate event.
// Events for child process windows will be sent when ParentActivated
// is called.
if (XRE_IsParentProcess()) {
ActivateOrDeactivate(window, true);
}