tor-browser

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

bug1691963.html (780B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4  <script>
      5    document.addEventListener("DOMContentLoaded", () => {
      6      const frame = document.createElement("frame");
      7      document.body.appendChild(frame);
      8      const { credentials } = frame.contentWindow.navigator;
      9 
     10      let i = 0;
     11      setInterval(async () => {
     12        if (i++ > 3) {
     13          document.documentElement.removeAttribute("class");
     14        }
     15        try {
     16          await credentials.get({
     17            publicKey: {
     18              challenge: new Uint8Array(128),
     19              allowCredentials: [{ type: 'public-key', id: new TextEncoder().encode('FOOBAR'), }],
     20            },
     21          });
     22        } catch (e) {}
     23        frame.remove();
     24      }, 1000);
     25    }, { once: true });
     26  </script>
     27 </head>
     28 </html>