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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/licenses/publicdomain/
5 * Contributor: Bob Clary
6 */
9 //-----------------------------------------------------------------------------
10 // SUMMARY: 10.1.8 Arguments Object length
12 var BUGNUMBER = 162392;
13 var summary = 'eval("arguments").length == 0 when no arguments specified';
14 var actual = noargslength();
15 var expect = 0;
17 function noargslength()
18 {
19 enterFunc('noargslength');
20 return eval('arguments').length;
21 exitFunc('noargslength');
22 }
24 //-----------------------------------------------------------------------------
25 test();
26 //-----------------------------------------------------------------------------
28 function test()
29 {
30 enterFunc ('test');
31 printBugNumber(BUGNUMBER);
32 printStatus (summary);
34 reportCompare(expect, actual, summary);
36 exitFunc ('test');
37 }