3 <script type=
"text/javascript">
4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 // So that we can catch crash failure.
7 testRunner
.waitUntilDone();
11 var p
= document
.getElementById('plg');
12 var iframe
= document
.getElementById('script-container-frame-id');
13 frameScriptFunction
= iframe
.contentWindow
['new-script-object-in-frame'];
14 iframe
.parentNode
.removeChild(iframe
);
15 p
.testScriptObjectInvoke('frameScriptFunction', 'createObject');
16 document
.getElementById('result').innerHTML
= 'SUCCESS';
17 if (window
.testRunner
)
18 testRunner
.notifyDone();
23 <embed id=
"plg" type=
"application/x-webkit-test-netscape"></embed><P>
24 <iframe id=
"script-container-frame-id" src=
"resources/script-container.html" onload='runTest()'
></iframe>
25 <div>This tests that invoking a plugin object from a (iframe) document that is no longer visible in a frame doesn't crash the renderer. If this test is successful, the word SUCCESS should be seen below.
</div>
26 <div id=
"result">FAILED
</div>