-1:000000000000 | 0:6ef643cbe4ed |
---|---|
1 /* | |
2 * If we're running in e10s, determines whether we're in child directory or | |
3 * not. | |
4 */ | |
5 | |
6 var inChild = false; | |
7 var filePrefix = ""; | |
8 try { | |
9 inChild = Components.classes["@mozilla.org/xre/runtime;1"]. | |
10 getService(Components.interfaces.nsIXULRuntime).processType | |
11 != Components.interfaces.nsIXULRuntime.PROCESS_TYPE_DEFAULT; | |
12 if (inChild) { | |
13 // use "jar:remoteopenfile://" in child instead of "jar:file://" | |
14 filePrefix = "remoteopen"; | |
15 } | |
16 } | |
17 catch (e) { } |