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 if (getBuildConfiguration().parallelJS) {
2 var map_toSource_called = false;
3 var mapPar_toSource_called = false;
5 Array.prototype.mapPar.toSource = function() {
6 mapPar_toSource_called = true;
7 };
9 Array.prototype.map.toSource = function() {
10 map_toSource_called = true;
11 };
13 try { new Array.prototype.mapPar; } catch (e) {}
14 try { new Array.prototype.map; } catch (e) {}
16 assertEq(map_toSource_called, mapPar_toSource_called);
17 }