intl/uconv/tests/test_bug335816.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=335816
     5 -->
     6 <head>
     7   <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
     8   <title>Test for Bug 335816</title>
     9   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    11 </head>
    12 <body onload="test()">
    13 <pre id="test">
    14 <script class="testbody" type="text/javascript">
    16 /** Test for Bug 335816 **/
    17 function test()
    18 {
    19   ok($("display").innerHTML != "Keep that breathless charm", "Hidden script not executed");
    20   SimpleTest.finish();
    21 }
    23 function WontYouPleaseArrangeIt()
    24 {
    25   $("display").innerHTML = "Keep that breathless charm";
    26 }
    28 SimpleTest.waitForExplicitFinish();
    29 </script>
    30 </pre>
    31 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=335816">Mozilla Bug 335816</a>
    32 <p id="display">Lovely ... Never, ever change.</p>
    34 <!-- There is a UTF-8 BOM just here - - - 
    35                                          |  which should not be stripped 
    36                                          v      -->
    37 <div id="content" style="display: none"><script>WontYouPleaseArrangeIt();</script></div>
    38 </body>
    39 </html>

mercurial