layout/reftests/scrolling/iframe-border-radius.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.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html class="reftest-wait">
michael@0 3 <body>
michael@0 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"
michael@0 5 id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe>
michael@0 6 <script>
michael@0 7 var f = document.getElementById("f");
michael@0 8 var count = 0;
michael@0 9 function doTest() {
michael@0 10 ++count;
michael@0 11 f.contentWindow.scrollTo(0, count*20);
michael@0 12 if (count == 4) {
michael@0 13 document.documentElement.removeAttribute("class");
michael@0 14 } else {
michael@0 15 setTimeout(doTest, 20);
michael@0 16 }
michael@0 17 }
michael@0 18 document.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 19 </script>
michael@0 20 </body>
michael@0 21 </html>

mercurial