tor-browser

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

bug1315146-main.html (535B)


      1 <!DOCTYPE HTML>
      2 <iframe src="http://example.org/tests/dom/html/test/bug1315146-iframe.html"></iframe>
      3 <input value="test">
      4 <script>
      5 document.domain = "example.org";
      6 onload = function() {
      7  let iframe = document.querySelector("iframe");
      8  let input = document.querySelector("input");
      9  input.selectionStart = input.selectionEnd = 2;
     10  document.body.style.overflow = "scroll";
     11  iframe.contentDocument.body.offsetWidth;
     12  opener.postMessage({start: input.selectionStart,
     13                      end: input.selectionEnd}, "*");
     14 }
     15 </script>