dom/tests/mochitest/general/497633.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/general/497633.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +</head>
     1.7 +<body>
     1.8 +<script>
     1.9 +var t = 0;
    1.10 +function doe() {
    1.11 +setTimeout(function() {
    1.12 +  if (t == 1) {
    1.13 +    window.close();
    1.14 +    window.opener.done();
    1.15 +  }
    1.16 +  else {
    1.17 +    window.frames[0].location.reload();
    1.18 +    t++;
    1.19 +  }
    1.20 +}, 300);
    1.21 +}
    1.22 +</script>
    1.23 +
    1.24 +<iframe src="data:application/xhtml+xml;charset=utf-8,%3Chtml%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%0A%3Ciframe%2F%3E%0A%3Cframeset%20onblur%3D%22window.frameElement.parentNode.removeChild(window.frameElement)%22%20id%3D%22frame%22%2F%3E%0A%0A%3Cscript%3E%0Afunction%20doe(i)%7B%0Adocument.getElementById('frame').focus()%3B%0Adocument.getElementsByTagName('*')%5B1%5D.focus()%3B%0A%7D%0Atop.opener.SimpleTest.waitForFocus(function%20()%20setTimeout(doe%2C%20100)%2C%20top)%3B%0A%3C%2Fscript%3E%0A%3C%2Fhtml%3E" onload="doe()" id="content"></iframe>
    1.25 +</body>
    1.26 +</html>
    1.27 +

mercurial