[Webkit-unassigned] [Bug 215158] New: ResizeObserver appears to not be properly garbage collected

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 4 23:35:44 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215158

            Bug ID: 215158
           Summary: ResizeObserver appears to not be properly garbage
                    collected
           Product: WebKit
           Version: Safari 13
          Hardware: Macintosh
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clark.y.pan at gmail.com

Created attachment 405989

  --> https://bugs.webkit.org/attachment.cgi?id=405989&action=review

Test file to reproduce ResizeObserver memory leak

ResizeObserver appears not to be properly garbage collected.

I'm unsure if this is a real problem, or simply a problem within the Web Inspector.

Steps to reproduce:

- Open provided example file in Safari (Tested on version Version 13.1.1 (15609.2.9.1.2))
- Open up Web Inspector -> Timelines -> Javascript Allocations
- Take a snapshot
- Wait a minute
- Take another snapshot
- Compare the two snapshots

Expected
- Only a single count of ResizeObserver and HTMLDivElement should be present

Actual
- None of the used objects seem to be garbage collected.

Notes: I've tried the same test in Chrome and Firefox, and they both behave correctly.
These test makes the assumption that garbage collection is run every time I take a heap snapshot (not true in Firefox).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200805/ab2d407f/attachment.htm>


More information about the webkit-unassigned mailing list