mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
a03e4f3ac2
Also use the right preprocessor variable to identify debug builds. --HG-- extra : rebase_source : 3c7370383770a30c5399002ebce8589d5258b848
81 lines
2.2 KiB
JavaScript
81 lines
2.2 KiB
JavaScript
var gProfD;
|
|
|
|
do_load_httpd_js();
|
|
gProfD = do_get_profile();
|
|
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
// Make sure to provide the right OS so crypto loads the right binaries
|
|
let OS = "XPCShell";
|
|
if ("@mozilla.org/windows-registry-key;1" in Cc)
|
|
OS = "WINNT";
|
|
else if ("nsILocalFileMac" in Ci)
|
|
OS = "Darwin";
|
|
else
|
|
OS = "Linux";
|
|
|
|
let XULAppInfo = {
|
|
vendor: "Mozilla",
|
|
name: "XPCShell",
|
|
ID: "{3e3ba16c-1675-4e88-b9c8-afef81b3d2ef}",
|
|
version: "1",
|
|
appBuildID: "20100621",
|
|
platformVersion: "",
|
|
platformBuildID: "20100621",
|
|
inSafeMode: false,
|
|
logConsoleErrors: true,
|
|
OS: OS,
|
|
XPCOMABI: "noarch-spidermonkey",
|
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsIXULAppInfo, Ci.nsIXULRuntime])
|
|
};
|
|
|
|
let XULAppInfoFactory = {
|
|
createInstance: function (outer, iid) {
|
|
if (outer != null)
|
|
throw Cr.NS_ERROR_NO_AGGREGATION;
|
|
return XULAppInfo.QueryInterface(iid);
|
|
}
|
|
};
|
|
|
|
let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
|
|
registrar.registerFactory(Components.ID("{fbfae60b-64a4-44ef-a911-08ceb70b9f31}"),
|
|
"XULAppInfo", "@mozilla.org/xre/app-info;1",
|
|
XULAppInfoFactory);
|
|
|
|
|
|
// Register resource aliases. Normally done in SyncComponents.manifest.
|
|
function addResourceAlias() {
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
const resProt = Services.io.getProtocolHandler("resource")
|
|
.QueryInterface(Ci.nsIResProtocolHandler);
|
|
let uri;
|
|
uri = Services.io.newURI("resource:///modules/services-sync/", null, null);
|
|
resProt.setSubstitution("services-sync", uri);
|
|
uri = Services.io.newURI("resource:///modules/services-crypto/", null, null);
|
|
resProt.setSubstitution("services-crypto", uri);
|
|
}
|
|
addResourceAlias();
|
|
|
|
|
|
// Some tests hang on OSX debug builds. See bug 604565.
|
|
let DISABLE_TESTS_BUG_604565 = false;
|
|
#ifdef XP_MACOSX
|
|
#ifdef DEBUG
|
|
DISABLE_TESTS_BUG_604565 = true;
|
|
#endif
|
|
#endif
|
|
|
|
// test_jpakeclient.js produces random failures on Windows 7
|
|
let DISABLE_TESTS_BUG_618233 = false;
|
|
#ifdef XP_WIN
|
|
DISABLE_TESTS_BUG_618233 = true;
|
|
#endif
|
|
|
|
// test_service_login.js persistently fails on Windows opt builds
|
|
let DISABLE_TESTS_BUG_664090 = false;
|
|
#ifdef XP_WIN
|
|
#ifndef DEBUG
|
|
DISABLE_TESTS_BUG_664090 = true;
|
|
#endif
|
|
#endif
|