layout/reftests/scrolling/iframe-border-radius-ref.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>
     2 <html class="reftest-wait">
     3 <body>
     4 <iframe src="data:text/html,<body style='font-size:100px; overflow:hidden; background:white;'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
     5         id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe>
     6 <script>
     7 var f = document.getElementById("f");
     8 function doTest() {
     9   f.contentWindow.scrollTo(0, 80);
    10   document.documentElement.removeAttribute('class');
    11 }
    12 document.addEventListener("MozReftestInvalidate", doTest, false);
    13 </script>
    14 </body>
    15 </html>

mercurial