tor-browser

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

test-same-origin-required-load.html (770B)


      1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      2   - License, v. 2.0. If a copy of the MPL was not distributed with this
      3   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      4 <!doctype html>
      5 <html>
      6  <head>
      7    <meta charset="utf-8">
      8    <title>Test loads that are required to be same-origin (no CORS involved)</title>
      9    <script>
     10      /* exported testTrack */
     11      "use strict";
     12 
     13      function testTrack(url) {
     14        const body = document.body;
     15        const video = document.createElement("video");
     16        const track = document.createElement("track");
     17        track.src = url;
     18        track.default = true;
     19        video.append(track);
     20        body.append(video);
     21      }
     22    </script>
     23  </head>
     24  <body>
     25  </body>
     26 </html>