js/src/jit-test/tests/ion/bug858617.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 function TestCase(e, a) {
     2   getTestCaseResult(e, a);
     3 };
     4 function reportCompare (expected, actual) {
     5   new TestCase(expected, actual);
     6 }
     7 function enterFunc() {}
     8 function getTestCaseResult(expected, actual) {
     9   return actual == expected;
    10 }
    11 reportCompare('', '');
    12 evaluate("\
    13 test();\
    14 function test() {\
    15   enterFunc();\
    16   reportCompare();\
    17 }\
    18 ");

mercurial