michael@0: /* michael@0: * If we're running in e10s, determines whether we're in child directory or michael@0: * not. michael@0: */ michael@0: michael@0: var inChild = false; michael@0: var filePrefix = ""; michael@0: try { michael@0: inChild = Components.classes["@mozilla.org/xre/runtime;1"]. michael@0: getService(Components.interfaces.nsIXULRuntime).processType michael@0: != Components.interfaces.nsIXULRuntime.PROCESS_TYPE_DEFAULT; michael@0: if (inChild) { michael@0: // use "jar:remoteopenfile://" in child instead of "jar:file://" michael@0: filePrefix = "remoteopen"; michael@0: } michael@0: } michael@0: catch (e) { }