Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
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) { }