dom/workers/test/test_xhrAbort.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 <!--
     2   Any copyright is dedicated to the Public Domain.
     3   http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <!DOCTYPE HTML>
     6 <html>
     7 <!--
     8 Tests of DOM Worker Threads XHR(Bug 450452 )
     9 -->
    10 <head>
    11   <title>Test for DOM Worker Threads XHR (Bug 450452 )</title>
    12   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    13   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    14 </head>
    15 <body>
    16 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=450452">DOM Worker Threads XHR (Bug 450452)</a>
    17 <p id="display"></p>
    18 <div id="content" style="display: none">
    20 </div>
    21 <pre id="test">
    22 <script language="javascript" src="xhrAbort_worker.js"></script>
    23 <script class="testbody" language="javascript">
    25   function postMessage(data) {
    26     dump(data.toString() + "\n");
    28     var worker = new Worker("xhrAbort_worker.js");
    30     worker.onmessage = function(event) {
    31       is (data.toString(), event.data.toString(), "Got different results!");
    32       SimpleTest.finish();
    33     };
    35     worker.postMessage("start");
    36   }
    38   runTest();
    40   SimpleTest.waitForExplicitFinish();
    41 </script>
    42 </pre>
    43 </body>
    44 </html>

mercurial