Bug 1334981 - Backed out changeset d6ca24ba3673 for regression caused by bug 887718. r=enndeakin, a=RyanVM
authorHenrik Skupin <mail@hskupin.info>
Thu, 07 Jun 2018 15:48:48 +0200
changeset 471235 9c3ebbc12a02922ef5812d18321a860437158c9c
parent 471234 2eaf4e5e4dff0e55a3f0992af867618eb11539ea
child 471236 8d528de4b44338c90c033032b05abc0b700d9802
push id9338
push userryanvm@gmail.com
push dateFri, 08 Jun 2018 18:59:56 +0000
treeherdermozilla-beta@9c3ebbc12a02 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenndeakin, RyanVM
bugs1334981, 887718
milestone61.0
Bug 1334981 - Backed out changeset d6ca24ba3673 for regression caused by bug 887718. r=enndeakin, a=RyanVM MozReview-Commit-ID: 9hIcRVRseO1
dom/base/nsFocusManager.cpp
--- 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);
   }