layout/reftests/font-face/load-badchecksum.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>
     2 <html>
     3 <head>
     4   <title>Checksums for downloadable fonts</title>
     5   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     7   <style type="text/css">
     8     body { margin: 50px; font-size: 24px; }
    10     @font-face {
    11       font-family: VeraBadChecksum;
    12       src: url(../fonts/VeraBd.ttf);
    13     }
    15     @font-face {
    16       font-family: VeraGoodChecksum;
    17       src: url(../fonts/VeraBd-validchecksum.ttf);
    18     }
    20     .verabad { font-family: VeraBadChecksum, Futura, sans-serif; }
    21     .veragood { font-family: VeraGoodChecksum, Futura, sans-serif; }
    23   </style>
    25   <script type="text/javascript">
    26   </script>
    28 </head>
    29 <body>
    30 <p class="verabad">Fonts load with or without correct head table checksums</p>
    31 </body>
    32 </html>

mercurial