summaryrefslogtreecommitdiffstats
path: root/accessible/ipc/DocAccessibleParent.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-04 09:09:10 +0200
committerGitHub <noreply@github.com>2018-05-04 09:09:10 +0200
commit4a2aeb152e48c44efa57c140660e99792f4dd350 (patch)
tree7b786de2b175122814a53232268b1147a8bd0bfb /accessible/ipc/DocAccessibleParent.cpp
parent20532e13937ab5fc8efcb2bfc4c0070dace40cd1 (diff)
parentf265784e8cabaff17f4554cf2bd2c30217b6ec0f (diff)
downloadUXP-4a2aeb152e48c44efa57c140660e99792f4dd350.tar
UXP-4a2aeb152e48c44efa57c140660e99792f4dd350.tar.gz
UXP-4a2aeb152e48c44efa57c140660e99792f4dd350.tar.lz
UXP-4a2aeb152e48c44efa57c140660e99792f4dd350.tar.xz
UXP-4a2aeb152e48c44efa57c140660e99792f4dd350.zip
Merge pull request #323 from MoonchildProductions/nuke-sandbox
Nuke sandbox
Diffstat (limited to 'accessible/ipc/DocAccessibleParent.cpp')
-rw-r--r--accessible/ipc/DocAccessibleParent.cpp25
1 files changed, 0 insertions, 25 deletions
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<HWND>(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)