mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-03 05:47:29 +09:00
Remove sandbox ductwork conditional code.
This commit is contained in:
parent
aa9ae963f6
commit
c8462db202
44 changed files with 5 additions and 916 deletions
|
|
@ -35,22 +35,6 @@ if CONFIG['_MSC_VER']:
|
|||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
RCINCLUDE = 'xpcshell.rc'
|
||||
|
||||
if CONFIG['MOZ_SANDBOX']:
|
||||
# For sandbox includes and the include dependencies those have
|
||||
LOCAL_INCLUDES += [
|
||||
'/security/sandbox/chromium',
|
||||
'/security/sandbox/chromium-shim',
|
||||
]
|
||||
|
||||
USE_LIBS += [
|
||||
'sandbox_s',
|
||||
]
|
||||
|
||||
DELAYLOAD_DLLS += [
|
||||
'winmm.dll',
|
||||
'user32.dll',
|
||||
]
|
||||
|
||||
DELAYLOAD_DLLS += [
|
||||
'xul.dll',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -22,9 +22,6 @@
|
|||
#define XRE_DONT_PROTECT_DLL_LOAD
|
||||
#define XRE_WANT_ENVIRON
|
||||
#include "nsWindowsWMain.cpp"
|
||||
#ifdef MOZ_SANDBOX
|
||||
#include "mozilla/sandboxing/SandboxInitialization.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
|
|
@ -54,10 +51,6 @@ main(int argc, char** argv, char** envp)
|
|||
#endif
|
||||
|
||||
XREShellData shellData;
|
||||
#if defined(XP_WIN) && defined(MOZ_SANDBOX)
|
||||
shellData.sandboxBrokerServices =
|
||||
mozilla::sandboxing::GetInitializedBrokerServices();
|
||||
#endif
|
||||
|
||||
int result = XRE_XPCShellMain(argc, argv, envp, &shellData);
|
||||
|
||||
|
|
|
|||
|
|
@ -44,9 +44,6 @@
|
|||
#ifdef XP_WIN
|
||||
#include "mozilla/widget/AudioSession.h"
|
||||
#include <windows.h>
|
||||
#if defined(MOZ_SANDBOX)
|
||||
#include "SandboxBroker.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// all this crap is needed to do the interactive shell stuff
|
||||
|
|
@ -1484,16 +1481,6 @@ XRE_XPCShellMain(int argc, char** argv, char** envp,
|
|||
// Plugin may require audio session if installed plugin can initialize
|
||||
// asynchronized.
|
||||
AutoAudioSession audioSession;
|
||||
|
||||
#if defined(MOZ_SANDBOX)
|
||||
// Required for sandboxed child processes.
|
||||
if (aShellData->sandboxBrokerServices) {
|
||||
SandboxBroker::Initialize(aShellData->sandboxBrokerServices);
|
||||
} else {
|
||||
NS_WARNING("Failed to initialize broker services, sandboxed "
|
||||
"processes will fail to start.");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue