tor-browser

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

1962172-1.html (711B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <body>
      5 </body>
      6 <script>
      7 const blob = new Blob([`
      8  self.onmessage = (evt) => {
      9    let ctx = evt.data.canvas.getContext("2d");
     10    ctx.font = "24px serif";
     11    // Text that will cause CJK font fallback, which looks up
     12    // the accept-language pref.
     13    ctx.measureText("你好");
     14    postMessage("Done");
     15  }
     16 `], {
     17  type: "application/typescript",
     18 });
     19 
     20 const url = URL.createObjectURL(blob);
     21 const worker = new Worker(url);
     22 
     23 worker.onmessage = (msg) => {
     24  document.documentElement.classList.remove("reftest-wait");
     25 };
     26 
     27 let offscreen = new OffscreenCanvas(100, 100);
     28 worker.postMessage({ canvas: offscreen }, [offscreen]);
     29 </script>
     30 </html>