js/xpconnect/tests/mochitest/test_bug871887.html

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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=871887
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 871887</title>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11   <script type="application/javascript;version=1.7">
    13   /** Test for Bug 871887 **/
    14   SimpleTest.waitForExplicitFinish();
    16   // NB: onstart ends up getting invoked twice, for mysterious and potentially-
    17   // IE6-related reasons.
    18   function checkpoint(invocant) {
    19     ok(true, "onstart called");
    20     is(invocant, $('llama'), "this-binding is correct");
    21     $('llama').loop = 1;
    22     $('llama').scrollDelay = 1;
    23     $('llama').scrollAmount = 500;
    24   }
    26   function done(invocant) {
    27     is(invocant, $('llama'), "this-binding is correct");
    28     ok(true, "onfinish called");
    29     SimpleTest.finish();
    30   }
    32   </script>
    33 </head>
    34 <body>
    35 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=871887">Mozilla Bug 871887</a>
    36 <p id="display"></p>
    37 <div id="content">
    38 <marquee id="llama" onstart="checkpoint(this);" onfinish="done(this);">Watch the Llama</marquee>
    39 </div>
    40 <pre id="test">
    41 </pre>
    42 </body>
    43 </html>

mercurial