tor-browser

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

print-in-detached-frame.html (406B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>print() in a detached iframe</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 
      7 <body>
      8 <script>
      9 "use strict";
     10 
     11 test(() => {
     12  const iframe = document.createElement("iframe");
     13  document.body.append(iframe);
     14  const print = iframe.contentWindow.print;
     15  iframe.remove();
     16 
     17  print();
     18 });
     19 </script>