Closed Bug 322574 Opened 20 years ago Closed 14 years ago

Continuous memory growth with this testcase using enablePrivilege

Categories

(Core :: Security: CAPS, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: martijn.martijn, Assigned: dveditz)

References

Details

(Keywords: memory-leak, testcase, Whiteboard: [MemShrink])

Attachments

(1 file)

See upcoming testcase. You need to test it locally to see the bug. It makes use of netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); which seems to be the cause of the memory growth, that's why I filed it in Core->Security (really not sure about that, though). I know the testcase is odd, with producing that many timers, but I don't get the memory consumption with any other peace of js code than the enablePrivilige code, so that seems strange to me.
Attached file testcase
Keywords: mlk
Component: Security → Security: CAPS
*** Bug 323232 has been marked as a duplicate of this bug. ***
I can reproduce on Mac, watching the "Real Memory" column in Activity Monitor. The testcase involves quadratic timer growth, so you can't really expect it to have low memory use. But the high memory use does seem to depend on the enablePrivilege call, so maybe something is going wrong there. (Or it could just be that when UniveralXPConnect is enabled, we throttle timers less.)
QA Contact: toolkit → caps
I think this now can be marked as WORKSFORME.
Whiteboard: [MemShrink]
enablePrivilege will be removed eventually, and this won't affect normal users.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: