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 'use strict';
3 const { Cu } = require("chrome");
4 const memory = require('../deprecated/memory');
5 const { defer } = require('../core/promise');
7 function gc() {
8 let { promise, resolve } = defer();
10 Cu.forceGC();
11 memory.gc();
13 Cu.schedulePreciseGC(_ => resolve());
15 return promise;
16 }
17 exports.gc = gc;