mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
af9903cd25
--HG-- extra : rebase_source : c5532dc6968c317e72399040a3024b6a22df0df8
18 lines
499 B
JavaScript
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");
|
|
}
|