Bug 1106906 - Always return false from nsFocusManager::IsParentActivated in the parent process. r=smaug, a=sledru
authorMarkus Stange <mstange@themasta.com>
Wed, 21 Jan 2015 16:59:57 -0500
changeset 249367 14f944bc125aa8bfbb48098cf4cd59251b28d941
parent 249366 aee87151300147bab6e07a6828ecca4683723b76
child 249368 16ac8643026565b0b16e55da1084a1a064076c1f
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, sledru
bugs1106906
milestone37.0a2
Bug 1106906 - Always return false from nsFocusManager::IsParentActivated in the parent process. r=smaug, a=sledru
dom/base/nsFocusManager.h
--- a/dom/base/nsFocusManager.h
+++ b/dom/base/nsFocusManager.h
@@ -94,20 +94,16 @@ public:
 
   /**
    * Update the caret with current mode (whether in caret browsing mode or not).
    */
   void UpdateCaretForCaretBrowsingMode();
 
   bool IsParentActivated()
   {
-    if (mParentFocusType == ParentFocusType_Ignore) {
-      return mActiveWindow != nullptr;
-    }
-
     return mParentFocusType == ParentFocusType_Active;
   }
 
   /**
    * Returns the content node that would be focused if aWindow was in an
    * active window. This will traverse down the frame hierarchy, starting at
    * the given window aWindow. Sets aFocusedWindow to the window with the
    * document containing aFocusedContent. If no element is focused,