tor-browser

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

URL-createObjectURL.html (551B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4  <meta charset='utf-8'>
      5  <title>URL.createObjectURL(mediaSource)</title>
      6  <script src="/resources/testharness.js"></script>
      7  <script src="/resources/testharnessreport.js"></script>
      8 </head>
      9 <body>
     10 <div id="log"></div>
     11 <script>
     12 test(function() {
     13    var mediaSource = new MediaSource();
     14    var url = window.URL.createObjectURL(mediaSource);
     15    assert_true(url != null);
     16    assert_true(url.match(/^blob:.+/) != null);
     17 }, "URL.createObjectURL(mediaSource) should return a unique Blob URI.");
     18 </script>
     19 </body>
     20 </html>