content/base/crashtests/348049-1.xhtml

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 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" class="reftest-wait">
     2 <head>
     4 <bindings xmlns="http://www.mozilla.org/xbl">
     6 <binding id="td">
     7   <content>
     8     <html:td><children/></html:td>
     9   </content>
    10 </binding>
    12 <binding id="foo">
    13   <content>
    14     <html:span/>
    15   </content>
    16 </binding>
    18 </bindings>
    21 <script>
    22 function f1()
    23 {
    24   document.getElementById("inner").style.MozBinding = "url(#foo)";
    25   document.documentElement.removeAttribute("class");
    26 }
    27 </script>
    29 </head>
    32 <body onload="setTimeout(f1, 30);">
    35 <div id="outer" style="-moz-binding: url(#td)"><div id="inner">M</div></div>
    38 </body>
    40 </html>

mercurial