tor-browser

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

window-open-invalid-url.html (412B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>window.open() with an invalid URL</title>
      4 <script src=/resources/testharness.js></script>
      5 <script src=/resources/testharnessreport.js></script>
      6 <script>
      7 test(() => {
      8  assert_throws_dom("SyntaxError", () => window.open("https://example.com\u0000mozilla.org"));
      9 }, "Window.open should throw SyntaxError when an invalid url is passed as the first parameter");
     10 </script>