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.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | |
michael@0 | 7 | /** |
michael@0 | 8 | File Name: 10.1.3-1.js |
michael@0 | 9 | ECMA Section: 10.1.3 |
michael@0 | 10 | Description: |
michael@0 | 11 | |
michael@0 | 12 | For each formal parameter, as defined in the FormalParameterList, create |
michael@0 | 13 | a property of the variable object whose name is the Identifier and whose |
michael@0 | 14 | attributes are determined by the type of code. The values of the |
michael@0 | 15 | parameters are supplied by the caller. If the caller supplies fewer |
michael@0 | 16 | parameter values than there are formal parameters, the extra formal |
michael@0 | 17 | parameters have value undefined. If two or more formal parameters share |
michael@0 | 18 | the same name, hence the same property, the corresponding property is |
michael@0 | 19 | given the value that was supplied for the last parameter with this name. |
michael@0 | 20 | If the value of this last parameter was not supplied by the caller, |
michael@0 | 21 | the value of the corresponding property is undefined. |
michael@0 | 22 | |
michael@0 | 23 | |
michael@0 | 24 | http://scopus.mcom.com/bugsplat/show_bug.cgi?id=104191 |
michael@0 | 25 | |
michael@0 | 26 | Author: christine@netscape.com |
michael@0 | 27 | Date: 12 november 1997 |
michael@0 | 28 | */ |
michael@0 | 29 | |
michael@0 | 30 | var SECTION = "10.1.3-1"; |
michael@0 | 31 | var VERSION = "ECMA_1"; |
michael@0 | 32 | var TITLE = "Variable Instantiation: Formal Parameters"; |
michael@0 | 33 | var BUGNUMBER="104191"; |
michael@0 | 34 | startTest(); |
michael@0 | 35 | |
michael@0 | 36 | writeHeaderToLog( SECTION + " "+ TITLE); |
michael@0 | 37 | |
michael@0 | 38 | var myfun1 = new Function( "a", "a", "return a" ); |
michael@0 | 39 | var myfun2 = new Function( "a", "b", "a", "return a" ); |
michael@0 | 40 | |
michael@0 | 41 | function myfun3(a, b, a) { |
michael@0 | 42 | return a; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | // myfun1, myfun2, myfun3 tostring |
michael@0 | 46 | |
michael@0 | 47 | |
michael@0 | 48 | new TestCase( |
michael@0 | 49 | SECTION, |
michael@0 | 50 | String(myfun2) +"; myfun2(2,4,8)", |
michael@0 | 51 | 8, |
michael@0 | 52 | myfun2(2,4,8) ); |
michael@0 | 53 | |
michael@0 | 54 | new TestCase( |
michael@0 | 55 | SECTION, |
michael@0 | 56 | "myfun2(2,4)", |
michael@0 | 57 | void 0, |
michael@0 | 58 | myfun2(2,4)); |
michael@0 | 59 | |
michael@0 | 60 | new TestCase( |
michael@0 | 61 | SECTION, |
michael@0 | 62 | String(myfun3) +"; myfun3(2,4,8)", |
michael@0 | 63 | 8, |
michael@0 | 64 | myfun3(2,4,8) ); |
michael@0 | 65 | |
michael@0 | 66 | new TestCase( |
michael@0 | 67 | SECTION, |
michael@0 | 68 | "myfun3(2,4)", |
michael@0 | 69 | void 0, |
michael@0 | 70 | myfun3(2,4) ); |
michael@0 | 71 | |
michael@0 | 72 | test(); |
michael@0 | 73 |