modules/libjar/test/unit/head_ipc.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /*
     2  * If we're running in e10s, determines whether we're in child directory or
     3  * not.
     4  */
     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) { }

mercurial