tor-browser

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

constructor-non-secure.html (465B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Notification constructor (basic) on a non-secure connection</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script>
      7 async_test(function (t) {
      8  const notification = new Notification("Sup.");
      9  notification.onerror = t.step_func_done(e => {
     10    assert_equals(e.type, "error");
     11  });
     12 }, "new Notification calls onerror in non-secure contexts")
     13 </script>