tor-browser

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

copy-document-mode.https.html (709B)


      1 <!DOCTYPE html>
      2 <title>Test document picture-in-picture copies Document mode</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/resources/testdriver.js"></script>
      6 <script src="/resources/testdriver-vendor.js"></script>
      7 <body>
      8 <script>
      9 promise_test(async (t) => {
     10  assert_equals(document.compatMode, "CSS1Compat", "The opener document should not be on quirks mode");
     11  await test_driver.bless('request PiP window');
     12  const pipWindow = await documentPictureInPicture.requestWindow();
     13  assert_equals(pipWindow.document.compatMode, "CSS1Compat", "The picture-in-picture document should not be on quirks mode");
     14 });
     15 </script>
     16 </body>