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)
Tracking
()
People
(Reporter: sean, Assigned: jst)
References
()
Details
(Keywords: memory-leak)
Attachments
(1 file)
|
1.76 KB,
text/html
|
Details |
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.
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Comment 2•25 years ago
|
||
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).
Keywords: mlk
| Reporter | ||
Comment 3•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•