tor-browser

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

fullscreen-crash.html (801B)


      1 <!DOCTYPE html>
      2 <html class="test-wait">
      3 <link rel="help" href="https://drafts.csswg.org/css-scroll-anchoring/">
      4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=823150">
      5 
      6 <script src="/resources/testdriver.js"></script>
      7 <script src="/resources/testdriver-vendor.js"></script>
      8 
      9 <style>
     10 
     11 #a { height: 700px; }
     12 #b { border: 4px solid #ccc; }
     13 
     14 </style>
     15 <div id="a"><div id="b"></div></div>
     16 <script>
     17 
     18 onload = () => {
     19  test_driver.bless("requestFullscreen", step2);
     20 };
     21 step2 = () => {
     22  b.requestFullscreen();
     23  b.addEventListener('fullscreenchange', step3);
     24 };
     25 step3 = () => {
     26  document.designMode = "on";
     27  document.execCommand("selectAll");
     28  document.execCommand("formatBlock", false, "p");
     29  document.documentElement.classList.remove('test-wait');
     30 };
     31 
     32 </script>
     33 </html>