tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

950000.html (598B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="UTF-8">
      5 <style id="s">
      6 
      7 @font-face {
      8  font-family: x;
      9  src: url(bogus-font.ttf);
     10 }
     11 
     12 @font-face {
     13  font-family: y;
     14  src: url(bogus-font.ttf);
     15 }
     16 
     17 </style>
     18 
     19 <script>
     20 
     21 function boom()
     22 {
     23    var canvas = document.createElement('canvas');
     24    var ctx = canvas.getContext('2d');
     25    ctx.font = 'normal 20px x';
     26 
     27    document.getElementById("s").remove();
     28 
     29    setTimeout(function() {
     30       ctx.measureText("A");
     31    }, 50);
     32 }
     33 
     34 window.addEventListener("DOMContentLoaded", boom)
     35 
     36 </script>
     37 </head>
     38 
     39 <body><div style="font-family: y;">y</div></body>
     40 </html>