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 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 665286;
9 var summary = 'yield in arguments list';
10 var actual = '';
11 var expect = '';
13 function reported() {
14 function f() {
15 x
16 }
17 f(yield [])
18 }
20 function simplified1() {
21 print(yield)
22 }
24 function simplified2() {
25 print(1, yield)
26 }
28 reportCompare(reported.isGenerator(), true, "reported case: is generator");
29 reportCompare(typeof reported(), "object", "reported case: calling doesn't crash");
30 reportCompare(simplified1.isGenerator(), true, "simplified case 1: is generator");
31 reportCompare(typeof simplified1(), "object", "simplified case 1: calling doesn't crash");
32 reportCompare(simplified2.isGenerator(), true, "simplified case 2: is generator");
33 reportCompare(typeof simplified2(), "object", "simplified case 2: calling doesn't crash");