modules/libjar/test/unit/head_ipc.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/modules/libjar/test/unit/head_ipc.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +/*
     1.5 + * If we're running in e10s, determines whether we're in child directory or
     1.6 + * not.
     1.7 + */
     1.8 +
     1.9 +var inChild = false;
    1.10 +var filePrefix = "";
    1.11 +try {
    1.12 +  inChild = Components.classes["@mozilla.org/xre/runtime;1"].
    1.13 +              getService(Components.interfaces.nsIXULRuntime).processType
    1.14 +              != Components.interfaces.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
    1.15 +  if (inChild) {
    1.16 +    // use "jar:remoteopenfile://" in child instead of "jar:file://"
    1.17 +    filePrefix = "remoteopen";
    1.18 +  }
    1.19 +} 
    1.20 +catch (e) { }

mercurial