dom/tests/mochitest/bugs/test_bug857555.html

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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=857555
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 857555</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">
    13   /** Test for Bug 857555 **/
    14   SimpleTest.waitForExplicitFinish();
    16   addLoadEvent(function() {
    17     is(content, $("t").contentWindow, "'content' as iframe name should work");
    18     is(sidebar, $("u").contentWindow, "'sidebar' as iframe name should work");
    19     SimpleTest.finish();
    20   });
    21   </script>
    22 </head>
    23 <body>
    24 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=857555">Mozilla Bug 857555</a>
    25 <p id="display"></p>
    26 <div id="content" style="display: none">
    27   <iframe name="content" id="t"></iframe>
    28   <iframe name="sidebar" id="u"></iframe>
    29 </div>
    30 <pre id="test">
    31 </pre>
    32 </body>
    33 </html>

mercurial