tor-browser

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

navigation-id-detached-frame.tentative.html (847B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 
      4 <head>
      5  <meta charset="utf-8">
      6  <title>The navigation_id Detached iframe Parent Page.</title>
      7  <script src="/resources/testharness.js"></script>
      8  <script src="/resources/testharnessreport.js"></script>
      9 </head>
     10 
     11 <body>
     12  <script>
     13    promise_test(t => {
     14      return new Promise(resolve => {
     15        const frame = document.createElement("iframe");
     16        frame.addEventListener("load", async () => {
     17          // Wait for iframe to be detached.
     18          while (frame.contentWindow) {
     19            await new Promise(r => t.step_timeout(r, 10));
     20          }
     21          resolve();
     22        });
     23        frame.src = "resources/navigation-id-detached-frame-page.html";
     24        document.body.appendChild(frame);
     25      });
     26    }, "The navigation_id getter does not crash a window of detached frame");
     27  </script>
     28 </body>
     29 
     30 </html>