[Webkit-unassigned] [Bug 18998] New: Unbounded memory increase swapping multiple background images

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 11 10:02:01 PDT 2008


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

           Summary: Unbounded memory increase swapping multiple background
                    images
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jgibb at sundog.net


1. Unzip attached file and load HTML page in WebKit or Safari 3.x
2. Press Start Test button
3. Monitor application RSIZE in Activity Monitor as test runs

RSIZE steadily increases as multiple background images are swapped repeatedly
with the same image urls. The more elements that swap background images, the
faster memory usage increases. This only seems to occur when setting the
background url(), not when setting background colors or other background
properties.

It looks like the same images are being allocated repeatedly (and never
deallocated) for every JS call to "element.background = url(image)"

I ran leaks from Terminal but didn't see anything unusual. FWIW, I see the same
memory increase in Safari 3 and 3.1 but NOT in Safari 2.x or Firefox 2.x.


-- 
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