gfx/tests/crashtests/483120-2.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" style="font-family: monospace;">
     2 <head>
     4 <bindings xmlns="http://www.mozilla.org/xbl">
     5   <binding id="w"><content><div xmlns="http://www.w3.org/1999/xhtml"><children xmlns="http://www.mozilla.org/xbl"/></div></content></binding>
     6   <binding id="empty"><content/></binding>
     7 </bindings>
     9 <script type="text/javascript">
    11 function boom()
    12 {
    13   document.getElementById("d").previousSibling.data += "C";
    14   document.getElementById("d").style.MozBinding = "url('#empty')";
    15 }
    17 </script>
    19 </head>
    21 <body onload="boom();"><span>A&#x202E;<span style="-moz-binding: url('#w');"></span>B<span id="d" style="font-size: 80%; color: green;">D</span></span></body>
    22 </html>

mercurial