layout/reftests/backgrounds/background-redraw-237766.html

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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
     2 <html class="reftest-wait">
     3 <head>
     4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     7 <style type="text/css">
     8 #test {position: absolute; right: 0; padding-left: 16px; background:
     9        url(blue-16x20.png) bottom left no-repeat}
    10 b {display: none}
    11 span {padding: 0 7.2px}
    12 </style>
    14 <script type="text/javascript">
    15 // see https://bugzilla.mozilla.org/show_bug.cgi?id=237766
    17 window.addEventListener("MozReftestInvalidate", doTest, false);
    18 // in order to reproduce this bug on the original build, which 
    19 // doesn't support MozReftestInvalidate
    20 setTimeout(doTest, 5000);
    22 function doTest() {
    23   document.getElementById("test1").style.borderBottomWidth = "1px";
    24   document.documentElement.className = "";
    25 }
    26 </script>
    28 </head><body>
    29 <div id="test">
    30    <span id="test1">test1</span><b>|</b><span>test2</span>
    31 </div>
    32 </body></html>

mercurial