tor-browser

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

test_import_data.js (372B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 add_task(async function() {
      5  let caught = false;
      6  try {
      7    ChromeUtils.importESModule("data:text/javascript,");
      8  } catch (e) {
      9    caught = true;
     10    Assert.equal(e.message, "System modules must be loaded from a trusted scheme");
     11  }
     12  Assert.ok(caught);
     13 });