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 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * For the keyword null the typeof operator returns the "object"
6 * See also
7 * http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Operators:Special_Operators:typeof_Operator
8 * and
9 * http://bugs.ecmascript.org/ticket/250
10 * for example
11 *
12 * @path ch08/8.2/S8.2_A3.js
13 * @description Check type of null
14 */
16 //////////////////////////////////////////////////////////////
17 // CHECK#1
18 if (typeof(null) !== "object") {
19 $ERROR('#1: typeof null === "object". Actual: ' + (typeof null));
20 }
21 //
22 /////////////////////////////////////////////////////////////