tor-browser

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

promise-reject-and-remove-iframe.html (313B)


      1 <!DOCTYPE html>
      2 <script>
      3 const promise = Promise.reject();
      4 
      5 window.onload = () => {
      6  promise.catch(() => parent.document.querySelector('iframe').remove());
      7 };
      8 </script>
      9 
     10 <!-- Load a slow script to delay window.onload for a while.
     11     Without this, crashes are flaky. -->
     12 <script src="/common/slow.py"></script>