memory leak when repeatedly calling netscape.security.PrivilegeManager.enablePrivilage("UniversalXPConnect")

RESOLVED DUPLICATE of bug 322574

Status

RESOLVED DUPLICATE of bug 322574
13 years ago
13 years ago

People

(Reporter: bdupont, Assigned: jag+mozilla)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

This html recreate the bug:

<html>
<head>
  <script language="javascript" type="text/javascript">
	var count = 0;

	function init()
	{
		setInterval("update()", 10);
	}

	function update()
	{
		count = count+1;
		netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");

		document.getElementById("count").innerHTML = count;
		
	}

  </script>
</head>
<body onload="init();">
<table border="1" cellspacing="0" cellpadding="5">
<tr>
  <TD>update count</TD>
  <td id="count"> </td>
</tr>
</table>
</body>
</html>

Reproducible: Always

Steps to Reproduce:
Running any HTML/js that repeatedly calls netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") appears to recreate the problem.

Actual Results:  
Memory usage continues to climb.  

Expected Results:  
I believe memory usage should remain constant.

This problem can be observed under Linux and Windows.
I think this is bug 322574, not?
(Reporter)

Comment 2

13 years ago
(In reply to comment #1)
> I think this is bug 322574, not?

My appologies.  It is the same bug.

dupes

*** This bug has been marked as a duplicate of 322574 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.