tor-browser

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

document-fullscreen-enabled-active-document.html (639B)


      1 <!DOCTYPE html>
      2 <title>
      3    Document#fullscreenEnabled when the document is not the active document
      4 </title>
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <div id="log"></div>
      8 <iframe allowfullscreen></iframe>
      9 <script>
     10    promise_test(async (t) => {
     11        const iframe = document.querySelector("iframe");
     12        const documentBeforeNav = iframe.contentDocument;
     13        await new Promise((resolve) => {
     14            iframe.onload = resolve;
     15            iframe.src = "/common/blank.html";
     16        });
     17        assert_false(documentBeforeNav.fullscreenEnabled)
     18    });
     19 </script>