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 var gTestcases = new Array();
2 var gTc = gTestcases.length;
3 function TestCase(n, d, e, a) {
4 gTestcases[gTc++] = this;
5 }
6 new TestCase("SECTION", "with MyObject, eval should return square of ");
7 test();
8 function test() {
9 for (gTc = 0; gTc < gTestcases.length; gTc++) {
10 var MYOBJECT = (function isPrototypeOf(message) {
11 delete input;
12 })();
13 with({}) {
14 gTestcases[gTc].actual = eval("");
15 }
16 }
17 }