Skip to content

Commit

Permalink
Bug 1504188 - Don't include Sandbox.h and don't use EarlyStartMacSand…
Browse files Browse the repository at this point in the history
…boxIfEnabled if the sandbox is disabled. r=haik

--HG--
extra : rebase_source : 228e7ffdd20e622f05c5c52a82109c802d2498b9
  • Loading branch information
marco-c committed Nov 2, 2018
1 parent 0ad6467 commit d8c93be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions browser/app/nsBrowserApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "FuzzerDefs.h"
#endif

#ifdef XP_MACOSX
#if defined(XP_MACOSX) && defined(MOZ_CONTENT_SANDBOX)
#include "mozilla/Sandbox.h"
#endif

Expand Down Expand Up @@ -267,7 +267,7 @@ int main(int argc, char* argv[], char* envp[])
{
mozilla::TimeStamp start = mozilla::TimeStamp::Now();

#ifdef XP_MACOSX
#if defined(XP_MACOSX) && defined(MOZ_CONTENT_SANDBOX)
if (argc > 1 && IsArg(argv[1], "contentproc")) {
std::string err;
if (!mozilla::EarlyStartMacSandboxIfEnabled(argc, argv, err)) {
Expand Down
4 changes: 2 additions & 2 deletions ipc/app/MozillaRuntimeMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "mozilla/Bootstrap.h"
#include "mozilla/WindowsDllBlocklist.h"

#ifdef XP_MACOSX
#if defined(XP_MACOSX) && defined(MOZ_CONTENT_SANDBOX)
#include "mozilla/Sandbox.h"
#endif

Expand All @@ -18,7 +18,7 @@ using namespace mozilla;
int
main(int argc, char *argv[])
{
#ifdef XP_MACOSX
#if defined(XP_MACOSX) && defined(MOZ_CONTENT_SANDBOX)
std::string err;
if (!mozilla::EarlyStartMacSandboxIfEnabled(argc, argv, err)) {
fprintf(stderr, "Sandbox error: %s\n", err.c_str());
Expand Down

0 comments on commit d8c93be

Please sign in to comment.