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: Blake Kaplan
6 */
9 //-----------------------------------------------------------------------------
10 var BUGNUMBER = 565521;
11 var summary = 'for-each getter calling';
12 var actual = '';
13 var expect = 'PASS';
16 //-----------------------------------------------------------------------------
17 test();
18 //-----------------------------------------------------------------------------
20 function test()
21 {
22 enterFunc ('test');
23 printBugNumber(BUGNUMBER);
24 printStatus (summary);
26 var proto = { get prop() { return (this === proto) ? "FAIL" : "PASS"; } };
27 var obj = Object.create(proto);
29 var itercount = 0;
30 for each (var i in obj) {
31 ++itercount;
32 actual = i;
33 }
35 reportCompare(itercount, 1, summary + ': right itercount')
36 reportCompare(expect, actual, summary + ': right value');
38 exitFunc ('test');
39 }