layout/reftests/bugs/348049-1.xhtml

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 <html xmlns="http://www.w3.org/1999/xhtml"
     2       xmlns:html="http://www.w3.org/1999/xhtml"
     3       class="reftest-wait">
     4   <head>
     5     <bindings xmlns="http://www.mozilla.org/xbl">
     6       <binding id="td">
     7         <content>
     8           <html:td><children/></html:td>
     9         </content>
    10       </binding>
    11     </bindings>
    12     <script>
    13       function f1() {
    14         document.getElementById("outer")
    15                 .appendChild(document.createTextNode("PASS"));
    16         document.documentElement.className = "";
    17       }
    18     </script>
    19   </head>
    20   <body onload="f1();">
    21     <div id="outer" style="-moz-binding: url(#td)"/>
    22   </body>
    24 </html>

mercurial