tor-browser

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

copy-document-mode-quirks.https.html (707B)


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