mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
30 lines
627 B
HTML
30 lines
627 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);
|
|
}
|
|
else {
|
|
// Pass the message up to our parent.
|
|
alert(e.detail.message);
|
|
}
|
|
});
|
|
|
|
document.body.appendChild(iframe);
|
|
iframe.src = 'file_browserElement_SetVisibleFrames_Inner.html?child';
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|