dom/tests/mochitest/chrome/window_focus_inner.xul
author Christoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Tue, 01 Aug 2017 10:59:57 +0200
changeset 423302 c5e543b0dfaaf508c6f57816ee8dc2fb70ab2301
permissions -rw-r--r--
Bug 1385273 - Convert tests within dom/tests/mochitest/chrome to comply with new data: URI inheritance model. r=smaug

<?xml version="1.0"?>
<window onfocus='dostuff()' xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul' style='-moz-user-focus: normal;'>
<script>
  function dostuff() {
    setTimeout(function() {
      document.documentElement.focus();
      document.removeChild(document.documentElement);
      window.opener.focus();
     }, 100);
    }
</script>
</window>