layout/xul/test/test_bug381167.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" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     2 <!--
     3 https://bugzilla.mozilla.org/show_bug.cgi?id=381167
     4 -->
     5 <head>
     6   <title>Test for Bug 381167</title>
     7   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     8   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
     9 </head>
    10 <body>
    11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=381167">Mozilla Bug 381167</a>
    12 <p id="display"></p>
    13 <div id="content" style="display: none">
    15 </div>
    16 <xul:tree>
    17   <xul:tree>
    18     <xul:treechildren/>
    19     <xul:treecol/>
    20   </xul:tree>
    21 </xul:tree>
    22 <pre id="test">
    23 <script type="application/javascript">
    25 /** Test for Bug 381167 **/
    27 SimpleTest.waitForExplicitFinish();
    29 function closeit() {
    30   var evt = document.createEvent('KeyEvents');
    31                                  evt.initKeyEvent('keypress', true, true,
    32                                  window,
    33                                  true, false, false, false,
    34                                  'W'.charCodeAt(0), 0);
    35   window.dispatchEvent(evt);
    37   setTimeout(finish, 200);
    38 }
    39 window.addEventListener('load', closeit, false);
    41 function finish()
    42 {
    43   ok(true, "This is a mochikit version of a crash test. To complete is to pass.");
    44   SimpleTest.finish();
    45 }
    46 </script>
    47 </pre>
    48 </body>
    49 </html>

mercurial