content/html/content/test/test_bug610212.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
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=610212
     5 -->
     6 <head>
     7   <title>Test for Bug 610212</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <script type="application/javascript" src="reflect.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=610212">Mozilla Bug 610212</a>
    14 <p id="display"></p>
    15 <div id="content" style="display: none">
    17 </div>
    18 <pre id="test">
    19 <script type="application/javascript">
    21 /** Test for Bug 610212 **/
    23 var canvas = document.createElement('canvas');
    25 reflectUnsignedInt({
    26   element: canvas,
    27   attribute: "width",
    28   nonZero: false,
    29   defaultValue: 300,
    30 });
    32 reflectUnsignedInt({
    33   element: canvas,
    34   attribute: "height",
    35   nonZero: false,
    36   defaultValue: 150,
    37 });
    39 </script>
    40 </pre>
    41 </body>
    42 </html>

mercurial