tenfourfox/dom/browser-element/mochitest/file_browserElement_SetVisibleFrames2_Outer.html
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

26 lines
543 B
HTML

<html>
<body>
<script>
var iframe = document.createElement('iframe');
iframe.setAttribute("mozbrowser", "true");
iframe.addEventListener('mozbrowsershowmodalprompt', function(e) {
if (e.detail.message == 'child:ready') {
setTimeout(function() {
iframe.setVisible(false);
iframe.setVisible(true);
setTimeout(function() {
alert('parent:finish');
}, 0);
}, 0);
}
});
document.body.appendChild(iframe);
iframe.src = 'file_browserElement_SetVisibleFrames_Inner.html?child';
</script>
</body>
</html>