base-uri.https.html (604B)
1 <!DOCTYPE html> 2 <title>Test that a document picture-in-picture window has the base URI of the initiator</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 await test_driver.bless('request PiP window from top window'); 11 const pipWindow = await documentPictureInPicture.requestWindow(); 12 assert_equals(pipWindow.document.baseURI, document.baseURI, "Base URIs match"); 13 }); 14 </script> 15 </body>