tor-browser

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

cross-origin-subframe-overlap.sub.html (1152B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <script src="/resources/testdriver.js"></script>
      5 <script src="/resources/testdriver-actions.js"></script>
      6 <script src="/resources/testdriver-vendor.js"></script>
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="../resources/input-onmessage.js"></script>
     10 <script src="../resources/pending-input-utils.js"></script>
     11 <style>
     12 .occluding {
     13  margin-left: -100px;
     14 }
     15 </style>
     16 </head>
     17 <body>
     18  <iframe src="http://{{hosts[][www1]}}:{{ports[http][0]}}/is-input-pending/resources/blank.html"></iframe>
     19  <iframe class="occluding" src="http://{{hosts[][www2]}}:{{ports[http][0]}}/is-input-pending/resources/blank.html"></iframe>
     20  <p>Ensure that two overlapping subframes cannot detect events from each other.</p>
     21  <script>
     22    window.addEventListener('load', () => {
     23      PendingInputUtils.testCannotAccessPendingInputAt(window, 280, 10, 'parent cannot detect input on occluding iframe');
     24      PendingInputUtils.testCannotAccessPendingInputAt(frames[0], 280, 10, 'occluded iframe cannot detect input on occluding iframe');
     25    });
     26  </script>
     27 </body>
     28 </html>