summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/mochitest/file_browserElement_SetVisibleFrames2_Outer.html
blob: c4fa25d26bb0c35fa410a723e6f01652518ea06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<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>