tor-browser

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

iframe_bug976673.html (682B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 976673</title>
      6 </head>
      7 <body>
      8  <input id="input" onfocus="event.target.value = event.type;"
      9                    onblur="event.target.value = event.type;">
     10  <script>
     11    var input = document.getElementById("input");
     12    window.addEventListener("message", function (aEvent) {
     13        switch (aEvent.data) {
     14          case "init":
     15            input.blur();
     16            input.value = "";
     17            input.focus();
     18          // fall through
     19          case "check":
     20            aEvent.source.postMessage("input-value: " + input.value, "*");
     21            break;
     22        }
     23      });
     24  </script>
     25 </body>
     26 </html>