mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +09:00
Remove content process sandbox code.
This commit is contained in:
parent
d87cc84005
commit
369378d566
41 changed files with 1 additions and 1823 deletions
|
|
@ -62,25 +62,6 @@ HTMLWin32ObjectAccessible::HTMLWin32ObjectAccessible(void* aHwnd,
|
|||
{
|
||||
mHwnd = aHwnd;
|
||||
if (mHwnd) {
|
||||
#if defined(MOZ_CONTENT_SANDBOX)
|
||||
if (XRE_IsContentProcess()) {
|
||||
DocAccessibleChild* ipcDoc = aDoc->IPCDoc();
|
||||
MOZ_ASSERT(ipcDoc);
|
||||
if (!ipcDoc) {
|
||||
return;
|
||||
}
|
||||
|
||||
IAccessibleHolder proxyHolder;
|
||||
if (!ipcDoc->SendGetWindowedPluginIAccessible(
|
||||
reinterpret_cast<uintptr_t>(mHwnd), &proxyHolder)) {
|
||||
return;
|
||||
}
|
||||
|
||||
mCOMProxy.reset(proxyHolder.Release());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
// The plugin is not windowless. In this situation we use
|
||||
// use its inner child owned by the plugin so that we don't get
|
||||
// in an infinite loop, where the WM_GETOBJECT's get forwarded
|
||||
|
|
@ -92,14 +73,6 @@ HTMLWin32ObjectAccessible::HTMLWin32ObjectAccessible(void* aHwnd,
|
|||
void
|
||||
HTMLWin32ObjectAccessible::GetNativeInterface(void** aNativeAccessible)
|
||||
{
|
||||
#if defined(MOZ_CONTENT_SANDBOX)
|
||||
if (XRE_IsContentProcess()) {
|
||||
RefPtr<IAccessible> addRefed = mCOMProxy.get();
|
||||
addRefed.forget(aNativeAccessible);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mHwnd) {
|
||||
::AccessibleObjectFromWindow(static_cast<HWND>(mHwnd),
|
||||
OBJID_WINDOW, IID_IAccessible,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue