mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
b823849d69
test_497898.html uses encoded URI in data:text/html, so I am going to replace it with srcdoc attribute and also decode the URI into plain html.
36 lines
701 B
HTML
36 lines
701 B
HTML
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
var t = 0;
|
|
function doe() {
|
|
setTimeout(function() {
|
|
if (t == 1) {
|
|
window.close();
|
|
window.opener.done();
|
|
}
|
|
else {
|
|
window.frames[0].location.reload();
|
|
t++;
|
|
}
|
|
}, 300);
|
|
}
|
|
</script>
|
|
|
|
<iframe srcdoc="<html xmlns='http://www.w3.org/1999/xhtml'>
|
|
<iframe/>
|
|
<frameset onblur='window.frameElement.parentNode.removeChild(window.frameElement)' id='frame'/>
|
|
|
|
<script>
|
|
function doe(i){
|
|
document.getElementById('frame').focus();
|
|
document.getElementsByTagName('*')[1].focus();
|
|
}
|
|
top.opener.SimpleTest.waitForFocus(function () setTimeout(doe, 100), top);
|
|
</script>
|
|
</html>" onload="doe()" id="content"></iframe>
|
|
</body>
|
|
</html>
|
|
|