Bug 1334981 - Backed out changeset d6ca24ba3673 for regression caused by bug 887718. draft
authorHenrik Skupin <mail@hskupin.info>
Thu, 07 Jun 2018 15:48:48 +0200
changeset 805209 e5a3525bea8dc80b414007277c2cd029cf7410db
parent 805066 f7fd9b08c0156be5b5cd99de5ed0ed0b98d93051
push id112594
push userbmo:hskupin@gmail.com
push dateThu, 07 Jun 2018 13:49:20 +0000
bugs1334981, 887718
milestone62.0a1
Bug 1334981 - Backed out changeset d6ca24ba3673 for regression caused by bug 887718. MozReview-Commit-ID: 9hIcRVRseO1
dom/base/nsFocusManager.cpp
--- a/dom/base/nsFocusManager.cpp
+++ b/dom/base/nsFocusManager.cpp
@@ -730,19 +730,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);
   }