tor-browser

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

004.any.js (908B)


      1 // META: global=sharedworker
      2 
      3 var unexpected = [
      4  // https://html.spec.whatwg.org/
      5  "ApplicationCache",
      6  "SharedWorker",
      7  "CanvasPath",
      8  "DedicatedWorkerGlobalScope",
      9  "AbstractView",
     10  "AbstractWorker",
     11  "Location",
     12  "Navigator",
     13  "DOMImplementation",
     14  "Audio",
     15  "HTMLCanvasElement",
     16  "Path",
     17  "CanvasProxy",
     18  "CanvasRenderingContext2D",
     19  "DrawingStyle",
     20  "PopStateEvent",
     21  "HashChangeEvent",
     22  "PageTransitionEvent",
     23  // http://w3c.github.io/IndexedDB/
     24  "IDBEnvironment",
     25  // https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/
     26  "Database",
     27  // https://w3c.github.io/uievents/
     28  "UIEvent",
     29  "FocusEvent",
     30  "MouseEvent",
     31  "WheelEvent",
     32  "InputEvent",
     33  "KeyboardEvent",
     34  "CompositionEvent",
     35 ];
     36 
     37 for (var i = 0; i < unexpected.length; ++i) {
     38  test(function() {
     39    assert_false(unexpected[i] in self);
     40  }, "The " + unexpected[i] + " interface object should not be exposed");
     41 }