Closed Bug 64834 Opened 25 years ago Closed 25 years ago

onload handler causes leak of plugin and plugin manager

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 43840

People

(Reporter: sean, Assigned: jst)

References

()

Details

(Keywords: memory-leak)

Attachments

(1 file)

Will attach testcase that demonstrates a leak of nsPluginHostImpl service and of an embedded plugin. At exit, mozilla displays the following: JS engine warning: leaking GC root 'nsXPCWrappedNative::mJSObj' at 03483080 JS engine warning: 1 GC root remains after destroying the JSRuntime. This root may point to freed memory. Objects reachable through it have not been finalized.
Attached file testcase
Adding mlk keyword and url. These leaks occur with any page that sources in the Beatnik Music-Object.js (http://www.beatnik.com/software/music_object.html).
Damn - turns out it's just a dupe of bug 43840. Simplified the testcase even more: <script language="JavaScript"> // this line causes a leak of the plugin host when you use // "document ['thePlugin']" var _plugins = navigator.plugins; // this line causes a leak of the embedded plugin and other objects alert(document ['thePlugin']); // however, if you comment out the above line and uncomment this line then // all is well //alert(document.getElementById('thePlugin')); </script> *** This bug has been marked as a duplicate of 43840 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified Duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: