From 755e1020782fb42863e97d58a3e44d2eca760bb0 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 2 May 2018 21:58:04 +0200 Subject: Remove content process sandbox code. --- accessible/ipc/DocAccessibleParent.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'accessible/ipc') diff --git a/accessible/ipc/DocAccessibleParent.cpp b/accessible/ipc/DocAccessibleParent.cpp index 0e9dfc080..4d368b1bc 100644 --- a/accessible/ipc/DocAccessibleParent.cpp +++ b/accessible/ipc/DocAccessibleParent.cpp @@ -492,32 +492,7 @@ bool DocAccessibleParent::RecvGetWindowedPluginIAccessible( const WindowsHandle& aHwnd, IAccessibleHolder* aPluginCOMProxy) { -#if defined(MOZ_CONTENT_SANDBOX) - // We don't actually want the accessible object for aHwnd, but rather the - // one that belongs to its child (see HTMLWin32ObjectAccessible). - HWND childWnd = ::GetWindow(reinterpret_cast(aHwnd), GW_CHILD); - if (!childWnd) { - // We're seeing this in the wild - the plugin is windowed but we no longer - // have a window. - return true; - } - - IAccessible* rawAccPlugin = nullptr; - HRESULT hr = ::AccessibleObjectFromWindow(childWnd, OBJID_WINDOW, - IID_IAccessible, - (void**)&rawAccPlugin); - if (FAILED(hr)) { - // This might happen if the plugin doesn't handle WM_GETOBJECT properly. - // We should not consider that a failure. - return true; - } - - aPluginCOMProxy->Set(IAccessibleHolder::COMPtrType(rawAccPlugin)); - - return true; -#else return false; -#endif } #endif // defined(XP_WIN) -- cgit v1.2.3