summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/plugin-remove-subframe.html
blob: ddd1b07077ba7d6d8846b12c62ea969bec6f1027 (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
26
27
28
29
30
31
32
33
34
<head>
<script>
function MyCallback() {
  
}

function test() {
  try {

    var plugin = window.frames["subframe"].document.plugins[0];
    plugin.getURL('javascript:parent.document.getElementById("d").innerHTML = "";', '_self');

  } catch (ex) {
    alert(ex);
  }

  setTimeout(done, 10);
}

function done() {
  testRunner.dumpAsText();
  testRunner.notifyDone();
}
</script>
</head>
<body onload="testRunner.waitUntilDone(); setTimeout(test, 10)">
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=14437">bug 14437</a>:
RTÉ video crashes Safari.</p>
<p>Only works with DumpRenderTree.</p>

<div id='d'>
  <iframe name='subframe' src='resources/plugin-remove-subframe-iframe.html'></iframe>
</div>
</body>