mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
18 lines
489 B
JavaScript
18 lines
489 B
JavaScript
/*
|
|
* If we're running in e10s, determines whether we're in child directory or
|
|
* not.
|
|
*/
|
|
|
|
var inChild = false;
|
|
var filePrefix = "";
|
|
try {
|
|
inChild = Components.classes["@mozilla.org/xre/runtime;1"].
|
|
getService(Components.interfaces.nsIXULRuntime).processType
|
|
!= Components.interfaces.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
|
|
if (inChild) {
|
|
// use "jar:remoteopenfile://" in child instead of "jar:file://"
|
|
filePrefix = "remoteopen";
|
|
}
|
|
}
|
|
catch (e) { }
|