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 * The integer 0 has two representations, +0 and -0
6 *
7 * @path ch08/8.5/S8.5_A11_T2.js
8 * @description Compare positive_zero and negative_zero
9 */
11 var p_zero=+0;
12 var n_zero=-0;
14 //CHECK #1
15 if ((p_zero == n_zero) !== true){
16 $ERROR('#1: var p_zero=+0; var n_zero=-0; p_zero != n_zero');
17 }
19 //CHECK #2
20 if ((n_zero == 0) !== true){
21 $ERROR('#2: var p_zero=+0; var n_zero=-0; n_zero == 0');
22 }
24 //CHECK #3
25 if ((p_zero == -0) !== true){
26 $ERROR('#3: var p_zero=+0; var n_zero=-0; p_zero == -0');
27 }
29 //CHECK #4
30 if ((p_zero === 0) !== true){
31 $ERROR('#4: var p_zero=+0; var n_zero=-0; p_zero === 0');
32 }
34 //CHECK #5
35 if ((n_zero === -0) !== true){
36 $ERROR('#5: var p_zero=+0; var n_zero=-0; n_zero === -0');
37 }