dom/tests/mochitest/general/497633.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <html>
michael@0 2 <head>
michael@0 3 </head>
michael@0 4 <body>
michael@0 5 <script>
michael@0 6 var t = 0;
michael@0 7 function doe() {
michael@0 8 setTimeout(function() {
michael@0 9 if (t == 1) {
michael@0 10 window.close();
michael@0 11 window.opener.done();
michael@0 12 }
michael@0 13 else {
michael@0 14 window.frames[0].location.reload();
michael@0 15 t++;
michael@0 16 }
michael@0 17 }, 300);
michael@0 18 }
michael@0 19 </script>
michael@0 20
michael@0 21 <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>
michael@0 22 </body>
michael@0 23 </html>
michael@0 24

mercurial