tor-browser

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

002.worker.js (1047B)


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