layout/reftests/bugs/621253-2-internalFilter.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 <html class="reftest-wait"
     2       reftest-zoom="1.5">
     3 <head>
     4 <script>
     5   function doTest() {
     6     var iframe = document.getElementsByTagName("iframe")[0];
     7     iframe.setAttribute("onload", "snapshot()");
     8     iframe.contentWindow.location.reload();
     9   }
    11   function snapshot() {
    12     document.documentElement.removeAttribute("class");
    13   }
    14 </script>
    15 </head>
    16 <body onload="doTest()" style="margin: 0">
    17 <iframe src="621253-helper-internalFilter.xhtml"
    18 	style="border: 0; overflow: hidden"></iframe>
    19 </body>
    20 </html>

mercurial