tor-browser

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

historical.html (683B)


      1 <!DOCTYPE html>
      2 <title>Historical drag-and-drop features</title>
      3 <meta charset="utf-8">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 
      7 <script>
      8 "use strict";
      9 
     10 test(() => {
     11  const potentialBadLocations = [
     12    window,
     13    document,
     14    HTMLElement.prototype,
     15    SVGElement.prototype,
     16    Document.prototype,
     17    HTMLDocument.prototype,
     18    Element.prototype
     19  ];
     20  for (const location of potentialBadLocations) {
     21    assert_false("ondragexit" in location,
     22      `${location.constructor.name} must not have a property "ondragexit"`);
     23  }
     24 }, `ondragexit must not be present on the GlobalEventHandlers locations`);
     25 </script>