tor-browser

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

file_domwindowutils_dynamic_toolbar.html (591B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
      6 </head>
      7 <body>
      8 <script>
      9  const ok = window.opener.ok;
     10 
     11  SpecialPowers.getDOMWindowUtils(window).setDynamicToolbarMaxHeight(100);
     12  ok(window.visualViewport.width > 0,
     13     "Setting the dynamic toolbar max height shouldn't clobber the visual " +
     14     "viewport size");
     15  ok(window.visualViewport.height > 0,
     16     "Setting the dynamic toolbar max height shouldn't clobber the visual " +
     17     "viewport size");
     18 
     19  window.opener.next();
     20  window.close();
     21 </script>
     22 </body>
     23 </html>