4 <script src=
"npapi.js"></script>
7 function returnedMethod() {
10 function dummyMethod() {
11 return returnedMethod
;
16 var plg
= window
.document
["plg"];
17 // Create the NPObjectStub in the plugin process first. This object's
18 // deallocate function will release the NPObject below.
20 // Then create an NPObjectProxy in the plugin process that holds on to the
21 // dummyMethod function above.
22 plg
.remember(dummyMethod
);
29 <div id=
"statusPanel" style=
"border: 1px solid red; width: 100%">
34 NPObject released on destruction
<p>
36 Tests that if a plugin creates an NPObject and releases it on destruction,
37 there's no crash when the plugin goes away.
41 <embed name=
"plg" type=
"application/x-webkit-test-netscape"></embed>