layout/xul/test/test_bug394800.xhtml

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <html xmlns="http://www.w3.org/1999/xhtml"
     2       xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     3 <head>
     4 <!--
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=394800
     6 -->
     7   <title>Test Mozilla bug 394800</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10 <script class="testbody" type="application/javascript">
    12 function do_test()
    13 {
    14   var x = document.getElementById("x");
    15   x.parentNode.removeChild(x);
    16   is(0, 0, "this is a crash/assertion test, so we're ok if we survived this far");
    17   SimpleTest.finish();
    18 }
    20 SimpleTest.waitForExplicitFinish();
    21 </script>
    22 </head>
    24 <body>
    26 <xul:menulist><xul:tooltip/><div><span><xul:hbox id="x"/></span></div></xul:menulist>
    28 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=394800">Mozilla Bug 394800</a>
    29 <p id="display"></p>
    31 <pre id="test">
    32 </pre>
    34 <script>
    35   addLoadEvent(do_test);
    36 </script>
    38 </body>
    39 </html>

mercurial