toolkit/components/osfile/tests/mochi/test_osfile_front.xul

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 <?xml version="1.0"?>
     2 <!--
     3   Any copyright is dedicated to the Public Domain.
     4   http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <window title="Testing OS.File on a chrome worker thread"
     7         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     8         onload="test();">
    10   <script type="application/javascript"
    11           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
    12   <script type="application/javascript"
    13           src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"/>
    14   <script type="application/javascript"
    15           src="worker_handler.js"/>
    16   <script type="application/javascript">
    17   <![CDATA[
    19 let worker;
    20 let main = this;
    22 function test() {
    23   info("test_osfile_front.xul: Starting test");
    25   // Test the OS.File worker
    27   worker = new ChromeWorker("worker_test_osfile_front.js");
    28   SimpleTest.waitForExplicitFinish();
    29   info("test_osfile_front.xul: Chrome worker created");
    30   dump("MAIN: go\n");
    31   worker_handler(worker);
    32   worker.postMessage(0);
    33   ok(true, "test_osfile_front.xul: Test in progress");
    34 };
    35 ]]>
    36   </script>
    38   <body xmlns="http://www.w3.org/1999/xhtml">
    39     <p id="display"></p>
    40     <div id="content" style="display:none;"></div>
    41     <pre id="test"></pre>
    42   </body>
    43   <label id="test-result"/>
    44 </window>

mercurial