Back out changeset 71d0179e0ad9 (bug 634586)
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 28 Mar 2011 13:47:53 -0400
changeset 64065 34e990f456ddd8eddc6279c8580cbd6d7d98f364
parent 64064 da772265da3cda206a5caddb49e7d0f66ea0bef1
child 64066 745fdfab4f5866b3bbe367adfd20e2e0e8c34588
child 64100 4453354d000325ca18b30fe06487c215f88a2c0a
push idunknown
push userunknown
push dateunknown
bugs634586
milestone2.2a1pre
backs out71d0179e0ad9e7abb807fca5e492d643808e5fcf
Back out changeset 71d0179e0ad9 (bug 634586)
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -4402,29 +4402,18 @@ nsGlobalWindow::SetFullScreen(PRBool aFu
     xulWin->SetIntrinsicallySized(PR_FALSE);
   }
 
   // Set this before so if widget sends an event indicating its
   // gone full screen, the state trap above works.
   mFullScreen = aFullScreen;
 
   nsCOMPtr<nsIWidget> widget = GetMainWidget();
-  if (widget) {
-    PRBool visible;
-    widget->IsVisible(visible);
-    if (visible && aFullScreen)
-      widget->Show(PR_FALSE);
+  if (widget)
     widget->MakeFullScreen(aFullScreen);
-    if (visible && aFullScreen) {
-      widget->Show(PR_TRUE);
-      nsIFocusManager* fm = nsFocusManager::GetFocusManager();
-      if (fm)
-        fm->SetActiveWindow(this);
-    }
-  }
 
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsGlobalWindow::GetFullScreen(PRBool* aFullScreen)
 {
   FORWARD_TO_OUTER(GetFullScreen, (aFullScreen), NS_ERROR_NOT_INITIALIZED);