mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
eb80d0fb04
--HG-- extra : rebase_source : 916b8181478cda654b8936f7bfab79e72f7c8422
30 lines
610 B
HTML
30 lines
610 B
HTML
<html>
|
|
<body>
|
|
<script>
|
|
|
|
var iframe = document.createElement('iframe');
|
|
iframe.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>
|