summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/chrome/window_focus_inner.xhtml
blob: 6887555fa7417764ba0be5f26374a2da16d1c5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?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>