зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 225683fed1d1 (bug 1294641) for breaking crashtests, reftests and Windows builds. r=backout on a CLOSED TREE
This commit is contained in:
Родитель
abdd83c00f
Коммит
e7317789ad
|
@ -59,7 +59,6 @@
|
|||
#include "mozilla/layout/RenderFrameChild.h"
|
||||
#include "mozilla/net/NeckoChild.h"
|
||||
#include "mozilla/net/CaptivePortalService.h"
|
||||
#include "mozilla/Omnijar.h"
|
||||
#include "mozilla/plugins/PluginInstanceParent.h"
|
||||
#include "mozilla/plugins/PluginModuleParent.h"
|
||||
#include "mozilla/widget/ScreenManager.h"
|
||||
|
@ -1226,7 +1225,7 @@ GetAppPaths(nsCString &aAppPath, nsCString &aAppBinaryPath, nsCString &aAppDir)
|
|||
if (!dirSvc) {
|
||||
return false;
|
||||
}
|
||||
rv = dirSvc->Get(NS_GRE_DIR,
|
||||
rv = dirSvc->Get(NS_XPCOM_CURRENT_PROCESS_DIR,
|
||||
NS_GET_IID(nsIFile), getter_AddRefs(appDir));
|
||||
if (NS_FAILED(rv)) {
|
||||
return false;
|
||||
|
@ -1260,18 +1259,6 @@ GetAppPaths(nsCString &aAppPath, nsCString &aAppBinaryPath, nsCString &aAppDir)
|
|||
return true;
|
||||
}
|
||||
|
||||
// Returns whether or not the currently running build is a development build -
|
||||
// where development build means "the files in the .app are symlinks to the src
|
||||
// directory". This check is implemented by looking for omni.ja in
|
||||
// .app/Contents/Resources/.
|
||||
static bool
|
||||
IsDevelopmentBuild()
|
||||
{
|
||||
nsCOMPtr<nsIFile> path = mozilla::Omnijar::GetPath(mozilla::Omnijar::GRE);
|
||||
// If the path doesn't exist, we're a dev build.
|
||||
return path == nullptr;
|
||||
}
|
||||
|
||||
static bool
|
||||
StartMacOSContentSandbox()
|
||||
{
|
||||
|
@ -1315,13 +1302,6 @@ StartMacOSContentSandbox()
|
|||
}
|
||||
|
||||
bool isFileProcess = cc->GetRemoteType().EqualsLiteral(FILE_REMOTE_TYPE);
|
||||
char *developer_repo_dir = nullptr;
|
||||
if (IsDevelopmentBuild()) {
|
||||
// If this is a developer build the resources in the .app are symlinks to
|
||||
// outside of the .app. Therefore in non-release builds we allow reads from
|
||||
// the whole repository. MOZ_DEVELOPER_REPO_DIR is set by mach run.
|
||||
developer_repo_dir = PR_GetEnv("MOZ_DEVELOPER_REPO_DIR");
|
||||
}
|
||||
|
||||
MacSandboxInfo info;
|
||||
info.type = MacSandboxType_Content;
|
||||
|
@ -1331,11 +1311,7 @@ StartMacOSContentSandbox()
|
|||
PR_GetEnv("MOZ_SANDBOX_LOGGING");
|
||||
info.appPath.assign(appPath.get());
|
||||
info.appBinaryPath.assign(appBinaryPath.get());
|
||||
if (developer_repo_dir != nullptr) {
|
||||
info.appDir.assign(developer_repo_dir);
|
||||
} else {
|
||||
info.appDir.assign(appDir.get());
|
||||
}
|
||||
info.appDir.assign(appDir.get());
|
||||
info.appTempDir.assign(tempDirPath.get());
|
||||
|
||||
if (profileDir) {
|
||||
|
|
|
@ -222,7 +222,6 @@ class MachCommands(MachCommandBase):
|
|||
return self._run_reftest(**kwargs)
|
||||
|
||||
def _run_reftest(self, **kwargs):
|
||||
kwargs["topsrcdir"] = self.topsrcdir
|
||||
process_test_objects(kwargs)
|
||||
reftest = self._spawn(ReftestRunner)
|
||||
if conditions.is_android(self):
|
||||
|
|
|
@ -362,7 +362,6 @@ class RefTest(object):
|
|||
browserEnv = self.environment(
|
||||
xrePath=options.xrePath, debugger=options.debugger)
|
||||
browserEnv["XPCOM_DEBUG_BREAK"] = "stack"
|
||||
browserEnv["MOZ_DEVELOPER_REPO_DIR"] = options.topsrcdir
|
||||
|
||||
if mozinfo.info["asan"]:
|
||||
# Disable leak checking for reftests for now
|
||||
|
|
|
@ -1182,9 +1182,7 @@ class RunProgram(MachCommandBase):
|
|||
args.append('-profile')
|
||||
args.append(path)
|
||||
|
||||
extra_env = {
|
||||
'MOZ_DEVELOPER_REPO_DIR': self.topsrcdir,
|
||||
}
|
||||
extra_env = {}
|
||||
|
||||
if not enable_crash_reporter:
|
||||
extra_env['MOZ_CRASHREPORTER_DISABLE'] = '1'
|
||||
|
|
|
@ -139,7 +139,6 @@ class MochitestRunner(MozbuildObject):
|
|||
logging.getLogger().removeHandler(handler)
|
||||
|
||||
options = Namespace(**kwargs)
|
||||
options.topsrcdir = self.topsrcdir
|
||||
|
||||
from manifestparser import TestManifest
|
||||
if tests and not options.manifestFile:
|
||||
|
|
|
@ -1002,9 +1002,6 @@ class AndroidArguments(ArgumentContainer):
|
|||
if options.xrePath is None:
|
||||
options.xrePath = options.utilityPath
|
||||
|
||||
if build_obj:
|
||||
options.topsrcdir = build_obj.topsrcdir
|
||||
|
||||
if options.pidFile != "":
|
||||
f = open(options.pidFile, 'w')
|
||||
f.write("%s" % os.getpid())
|
||||
|
|
|
@ -1577,9 +1577,6 @@ toolbar#nav-bar {
|
|||
dmdPath=options.dmdPath,
|
||||
lsanPath=lsanPath)
|
||||
|
||||
if hasattr(options, "topsrcdir"):
|
||||
browserEnv["MOZ_DEVELOPER_REPO_DIR"] = options.topsrcdir
|
||||
|
||||
# These variables are necessary for correct application startup; change
|
||||
# via the commandline at your own risk.
|
||||
browserEnv["XPCOM_DEBUG_BREAK"] = "stack"
|
||||
|
|
|
@ -921,7 +921,6 @@ class XPCShellTests(object):
|
|||
# enable non-local connections for the purposes of local testing.
|
||||
# Don't override the user's choice here. See bug 1049688.
|
||||
self.env.setdefault('MOZ_DISABLE_NONLOCAL_CONNECTIONS', '1')
|
||||
self.env["MOZ_DEVELOPER_REPO_DIR"] = self.mozInfo["topsrcdir"]
|
||||
|
||||
def buildEnvironment(self):
|
||||
"""
|
||||
|
|
Загрузка…
Ссылка в новой задаче