tor-browser

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

file_bug760131.html (406B)


      1 <html>
      2 <div id="target" ontouchstart="alert();"></div>
      3 <script type="application/javascript">
      4 
      5 /** Test for Bug 760131 **/
      6 
      7 function accessTouches(evt)
      8 {
      9  var thrown = false;
     10  try {
     11    var a = evt.touches;
     12  } catch (e) {
     13    thrown = true;
     14  }
     15  ok(!thrown, "Unwrapping a TouchList shouldn't throw");
     16 }
     17 
     18 document.getElementById("target").ontouchstart = accessTouches;
     19 
     20 </script>
     21 </pre>
     22 </body>
     23 </html>