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 actual = '';
2 expected = 'undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],undefined,[object Object],';
4 function f() {
5 for (var q = 0; q < 10; ++q) {
6 for each(let b in [(void 0), {}]) {
7 (function() {
8 for (var i = 0; i < 1; ++i) {
9 appendToActual('' + b)
10 }
11 }())
12 }
13 }
14 }
16 f()
19 assertEq(actual, expected)