gecko/dom/settings/tests/file_loadserver.js
Kyle Machulis af9903cd25 Bug 1112936 - Enable settings API tests on e10s; r=gwagner r=bent r=gerard-majax
--HG--
extra : rebase_source : c5532dc6968c317e72399040a3024b6a22df0df8
2014-12-22 09:38:01 -08:00

18 lines
499 B
JavaScript

let Ci = Components.interfaces;
let Cc = Components.classes;
let Cu = Components.utils;
// Stolen from SpecialPowers, since at this point we don't know we're in a test.
let isMainProcess = function() {
try {
return Cc["@mozilla.org/xre/app-info;1"].
getService(Ci.nsIXULRuntime).
processType == Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
} catch (e) { }
return true;
};
if (isMainProcess()) {
Components.utils.import("resource://gre/modules/SettingsRequestManager.jsm");
}