tor-browser

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

file_fullscreen-focus-inner.html (485B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Focus test - child window</title>
      5  <script type="application/javascript" src="file_fullscreen-utils.js"></script>
      6 </head>
      7 <body>
      8 
      9 <script type="application/javascript">
     10 
     11 function enterFullscreen() {
     12  addFullscreenErrorContinuation(() => { opener.enteredFullscreen(false); });
     13 
     14  addFullscreenChangeContinuation("enter", () => {
     15    opener.enteredFullscreen(true);
     16  });
     17 
     18  document.body.requestFullscreen();
     19 }
     20 
     21 </script>
     22 </pre>
     23 </body>
     24 </html>