layout/reftests/font-face/disable-sheet-1.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
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.01//EN"
     2 	"http://www.w3.org/TR/html4/strict.dtd">
     3 <html lang="en-US" class="reftest-wait">
     4 <head>
     5 	<title></title>
     6 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     7 	<style type="text/css">
     9 	@font-face {
    10 		font-family: "MarkA";
    11 		src: url(../fonts/markA.ttf);
    12 	}
    14 	</style>
    15 	<style type="text/css">
    17 	body { font-family: "MarkA"; }
    19 	</style>
    20 	<script type="application/ecmascript">
    22 	function run() {
    23 		document.getElementsByTagName("style")[0].disabled = true;
    24 		document.documentElement.removeAttribute("class");
    25 	}
    27 	</script>
    28 </head>
    29 <body onload="setTimeout(run, 20)">
    31 <p>ABC</p>
    33 </body>
    34 </html>

mercurial