js/src/tests/js1_5/Regress/regress-463782.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.

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 var BUGNUMBER = 463782;
michael@0 8 var summary = 'Do not assert: "need a way to EOT now, since this is trace end": 0';
michael@0 9 var actual = '';
michael@0 10 var expect = '';
michael@0 11
michael@0 12 printBugNumber(BUGNUMBER);
michael@0 13 printStatus (summary);
michael@0 14
michael@0 15 jit(true);
michael@0 16
michael@0 17 function dateCheck() {
michael@0 18 return true;
michael@0 19 }
michael@0 20 function dateToString()
michael@0 21 {
michael@0 22 if (!this.dtsReturnValue)
michael@0 23 this.dtsReturnValue = "200811080616";
michael@0 24 return this.dtsReturnValue
michael@0 25 }
michael@0 26
michael@0 27 function placeAd2() {
michael@0 28 var adClasses = {
michael@0 29 "": {
michael@0 30 templateCheck: function () {
michael@0 31 var foo = ({
michael@0 32 allianz:{
michael@0 33 where:["intl/turningpoints"],
michael@0 34 when:["200805010000/200901010000"],
michael@0 35 what:["!234x60", "!bigbox_2", "!leaderboard_2", "!88x31"]
michael@0 36 },
michael@0 37 trendMicro:{
michael@0 38 where:["techbiz/tech/threatmeter"],
michael@0 39 when:["200806110000/200812310000"],
michael@0 40 what:["leaderboard"]
michael@0 41 },
michael@0 42 rolex_bb:{
michael@0 43 where:["politics/transitions"],
michael@0 44 when:["200811050000/200901312359"],
michael@0 45 what:["!bigbox"]
michael@0 46 }
michael@0 47 });
michael@0 48
michael@0 49 for (a in foo) {
michael@0 50 if (dateCheck("", dateToString())) {
michael@0 51 for (var c = 0; c < 1; c++) {
michael@0 52 }
michael@0 53 }
michael@0 54 }
michael@0 55 return true;
michael@0 56 }
michael@0 57 }
michael@0 58 };
michael@0 59
michael@0 60 adClasses[""].templateCheck();
michael@0 61 }
michael@0 62
michael@0 63 placeAd2();
michael@0 64
michael@0 65 jit(false);
michael@0 66
michael@0 67 reportCompare(expect, actual, summary);
michael@0 68

mercurial