Thu, 15 Jan 2015 15:59:08 +0100
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>Font name collision test</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <!--
8 Font family names in @font-face rules take precedence over locally-available font families,
9 so none of the names of commonly used platform fonts should match against locally available
10 fonts.
11 -->
13 <style type="text/css">
15 @font-face {
16 font-family: fallback;
17 src: url(../fonts/mplus/mplus-1p-regular.ttf);
18 }
20 body {
21 margin: 50px;
22 font-family: fallback;
23 }
25 table {
26 margin-left: 3em;
27 }
29 @font-face {
30 font-family: Sample;
31 src: url(../fonts/bogus-dir/bogus-font.ttf);
32 font-weight: 900;
33 }
35 .sample { font-family: Sample, fallback; }
37 /* Windows */
39 @font-face {
40 font-family: Arial;
41 src: url(../fonts/bogus-dir/bogus-font.ttf);
42 font-weight: 900;
43 }
45 .arial { font-family: Arial, fallback; }
47 @font-face {
48 font-family: Times New Roman;
49 src: url(../fonts/bogus-dir/bogus-font.ttf);
50 font-weight: 900;
51 }
53 .timesnewroman { font-family: Times New Roman, fallback; }
55 @font-face {
56 font-family: Courier New;
57 src: url(../fonts/bogus-dir/bogus-font.ttf);
58 font-weight: 900;
59 }
61 .couriernew { font-family: Courier New, fallback; }
63 /* Mac OS X */
65 @font-face {
66 font-family: Futura;
67 src: url(../fonts/bogus-dir/bogus-font.ttf);
68 font-weight: 900;
69 }
71 .futura { font-family: Futura, fallback; }
73 @font-face {
74 font-family: Helvetica;
75 src: url(../fonts/bogus-dir/bogus-font.ttf);
76 font-weight: 900;
77 }
79 .helvetica { font-family: Helvetica, fallback; }
81 @font-face {
82 font-family: Times;
83 src: url(../fonts/bogus-dir/bogus-font.ttf);
84 font-weight: 900;
85 }
87 .times { font-family: Times, fallback; }
89 @font-face {
90 font-family: Courier;
91 src: url(../fonts/bogus-dir/bogus-font.ttf);
92 font-weight: 900;
93 }
95 .courier { font-family: Courier, fallback; }
97 /* Linux */
99 @font-face {
100 font-family: Bitstream Vera Sans;
101 src: url(../fonts/bogus-dir/bogus-font.ttf);
102 font-weight: 900;
103 }
105 .bitstreamverasans { font-family: Bitstream Vera Sans, fallback; }
107 @font-face {
108 font-family: DejaVu Sans;
109 src: url(../fonts/bogus-dir/bogus-font.ttf);
110 font-weight: 900;
111 }
113 .dejavusans { font-family: DejaVu Sans, fallback; }
115 @font-face {
116 font-family: FreeSans;
117 src: url(../fonts/bogus-dir/bogus-font.ttf);
118 font-weight: 900;
119 }
121 .freesans { font-family: FreeSans, fallback; }
123 table {
124 font-family: Sample;
125 }
127 table td {
128 font-size: 24pt;
129 }
131 </style>
133 </head>
135 <body>
137 <p>All text below should appear in the same "fallback" font face:</p>
139 <table>
140 <tr class="sample"><td>Sample</td></tr>
141 <tr class="arial"><td>Arial</td></tr>
142 <tr class="timesnewroman"><td>Times New Roman</td></tr>
143 <tr class="couriernew"><td>Courier New</td></tr>
144 <tr class="futura"><td>Futura</td></tr>
145 <tr class="helvetica"><td>Helvetica</td></tr>
146 <tr class="times"><td>Times</td></tr>
147 <tr class="courier"><td>Courier</td></tr>
148 <tr class="bitstreamverasans"><td>Bitstream Vera Sans</td></tr>
149 <tr class="dejavusans"><td>DejaVu Sans</td></tr>
150 <tr class="freesans"><td>FreeSans</td></tr>
151 </table>
153 </body>
154 </html>