Backed out changeset 1970274b8890 (bug 1297549) for talos bustage
authorPhil Ringnalda <philringnalda@gmail.com>
Sun, 18 Sep 2016 11:12:59 -0700
changeset 355630 de404845c4f77fd4daa2ec9aaeec9170adc27a65
parent 355629 eaf5eb6f8fa0d8e7a09f3774c0da53c0dd6dadd7
child 355631 66ab506ce61f096cab215f6b0c8e790959c96242
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1297549
milestone51.0a1
backs out1970274b88905bc56d2f938aa027ec8a1f2a1e78
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 1970274b8890 (bug 1297549) for talos bustage
accessible/windows/msaa/AccessibleWrap.cpp
--- a/accessible/windows/msaa/AccessibleWrap.cpp
+++ b/accessible/windows/msaa/AccessibleWrap.cpp
@@ -4,17 +4,16 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "AccessibleWrap.h"
 #include "Accessible-inl.h"
 
 #include "Compatibility.h"
 #include "DocAccessible-inl.h"
-#include "mozilla/dom/TabChild.h"
 #include "mozilla/a11y/DocAccessibleChild.h"
 #include "mozilla/a11y/DocAccessibleParent.h"
 #include "EnumVariant.h"
 #include "nsAccUtils.h"
 #include "nsCoreUtils.h"
 #include "nsIAccessibleEvent.h"
 #include "nsWinUtils.h"
 #include "mozilla/a11y/ProxyAccessible.h"
@@ -1299,32 +1298,16 @@ AccessibleWrap::GetChildIDFor(Accessible
 
 HWND
 AccessibleWrap::GetHWNDFor(Accessible* aAccessible)
 {
   if (!aAccessible) {
     return nullptr;
   }
 
-  if (XRE_IsContentProcess()) {
-    DocAccessible* doc = aAccessible->Document();
-    if (!doc) {
-      return nullptr;
-    }
-
-    DocAccessibleChild* ipcDoc = doc->IPCDoc();
-    if (!ipcDoc) {
-      return nullptr;
-    }
-
-    auto tab = static_cast<dom::TabChild*>(ipcDoc->Manager());
-    MOZ_ASSERT(tab);
-    return reinterpret_cast<HWND>(tab->GetNativeWindowHandle());
-  }
-
   // Accessibles in child processes are said to have the HWND of the window
   // their tab is within.  Popups are always in the parent process, and so
   // never proxied, which means this is basically correct.
   if (aAccessible->IsProxy()) {
     ProxyAccessible* proxy = aAccessible->Proxy();
     if (!proxy) {
       return nullptr;
     }