js/src/tests/ecma/FunctionObjects/15.3.5.3.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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    File Name:          15.3.5.3.js
     9    ECMA Section:       Function.arguments
    10    Description:
    12    The value of the arguments property is normally null if there is no
    13    outstanding invocation of the function in progress (that is, the
    14    function has been called but has not yet returned). When a non-internal
    15    Function object (15.3.2.1) is invoked, its arguments property is
    16    "dynamically bound" to a newly created object that contains the arguments
    17    on which it was invoked (see 10.1.6 and 10.1.8). Note that the use of this
    18    property is discouraged; it is provided principally for compatibility
    19    with existing old code.
    21    See sections 10.1.6 and 10.1.8 for more extensive tests.
    23    Author:             christine@netscape.com
    24    Date:               12 november 1997
    25 */
    27 var SECTION = "15.3.5.3";
    28 var VERSION = "ECMA_1";
    29 startTest();
    30 var TITLE   = "Function.arguments";
    32 writeHeaderToLog( SECTION + " "+ TITLE);
    34 var MYFUNCTION = new Function( "return this.arguments" );
    36 new TestCase( SECTION,  "var MYFUNCTION = new Function( 'return this.arguments' ); MYFUNCTION.arguments",   null,   MYFUNCTION.arguments );
    38 test();

mercurial