tor-browser

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

cross-origin-subframe.sub.html (834B)


      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 </head>
     12 <body>
     13  <iframe src="http://{{hosts[][www1]}}:{{ports[http][0]}}/is-input-pending/resources/blank.html"></iframe>
     14  <p>Ensure that a parent frame cannot detect events on a cross-origin subframe.</p>
     15  <script>
     16    window.addEventListener('load', () => {
     17      PendingInputUtils.testCannotAccessPendingInputAt(window, 10, 10, 'cannot detect cross-origin events on subframe');
     18    });
     19  </script>
     20 </body>
     21 </html>