content/html/content/test/test_bug885024.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 data-expando-prop="xyz">
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=885024
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 885024</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 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=885024">Mozilla Bug 885024</a>
    14 <p id="display"></p>
    15 <div id="content" style="display: none">
    16 </div>
    18 <img form="t">
    20 <form id="form">
    21   <div id="div"></div>
    22 </form>
    24 <pre id="test">
    25   <script type="application/javascript">
    26     var img = document.createElement('img');
    27     img.setAttribute('id', 'img');
    29     var div = document.getElementById('div');
    30     div.appendChild(img);
    32     var form = document.getElementById('form');
    33     ok(form, "form exists");
    34     ok(form.img, "form.img exists");
    36     var img2 = document.createElement('img');
    37     img2.setAttribute('id', 'img2');
    38     img2.setAttribute('form', 'blabla');
    39     ok(form, "form exists2");
    40     div.appendChild(img2);
    41     ok(form.img2, "form.img2 exists");
    43   </script>
    44 </pre>
    45 </body>
    46 </html>

mercurial