[Webkit-unassigned] [Bug 10773] Memory usage grows when reloading google.com/ig

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 14 21:32:39 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=10773





------- Comment #9 from sanjay12 at gmail.com  2007-01-14 21:32 PDT -------
Created an attachment (id=12439)
 --> (http://bugs.webkit.org/attachment.cgi?id=12439&action=view)
JS object leak test case

I've attached a test case which demonstrates this leak on the most basic level.
It seems like there are a few key things that need to happen in order to cause
the leak:

1. Declare a function-object.
2. In the function object, declare a handler which does something with the
document object.
3. Allocate further memory in the function object to make the leak detectable.
4. Set a variable equal to document, and then run addEventListener on that
variable, attaching the handler to "keydown".
5. Then create a new instance of your function object.

The attached html file will leak approximately 4mb per refresh (or 43 JS
objects if you're monitoring the caches window.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list