tor-browser

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

786108-2.html (942B)


      1 <html>
      2  <head></head>
      3  <body></body>
      4  <script type="text/javascript">
      5    // Detect severe performance and memory issues when large amounts of errors
      6    // are reported from CSS embedded in a file with a long data URI. Addressed
      7    // by 786108; should finish quickly with that patch and run for a very long
      8    // time otherwise. This version is designed for slow / memory constrained
      9    // platforms like Android.
     10 
     11    var img = new Array;
     12    img.push('<img src="data:image/svg+xml,');
     13    img.push(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300px" height="300px">'));
     14 
     15    for (var i = 0 ; i < 2500 ; i++)
     16      img.push(encodeURIComponent('<circle cx="0" cy="0" r="1" style="xxx-invalid-property: 0;"/>'));
     17 
     18    img.push(encodeURIComponent('</svg>'));
     19    img.push('">');
     20 
     21    document.getElementsByTagName('body')[0].innerHTML = img.join('');
     22  </script>
     23 </html>