tor-browser

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

iframe_bug962251.html (668B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 </head>
      5 <body>
      6 <input id="textinput" type="text"></input>
      7 <input id="textinput1" type="text"></input>
      8 </body>
      9 <script>
     10  var SimpleTest = parent.SimpleTest;
     11 
     12  var ok = SimpleTest.ok;
     13  var info = SimpleTest.info;
     14  var is = SimpleTest.is;
     15  var finish = SimpleTest.finish.bind(SimpleTest);
     16 
     17  var input = document.getElementById("textinput");
     18  input.addEventListener("focus", function(aEvent) {
     19    is(aEvent.target.id, "textinput", "Input should be focused.");
     20    ok(aEvent.relatedTarget === null, "The relatedTarget should be null.");
     21    parent.postMessage("runNextTest", "*");
     22  }, {once: true});
     23  input.focus();
     24 </script>
     25 </html>