RESOLVED FIXED 158174
Web Inspector: Not all transitively dominated nodes display their retained size
https://bugs.webkit.org/show_bug.cgi?id=158174
Summary Web Inspector: Not all transitively dominated nodes display their retained size
Joseph Pecoraro
Reported 2016-05-27 17:08:48 PDT
* SUMMARY Not all transitively dominated nodes display their retained size. * TEST <script> class Person { constructor(name) { this.name = name; } } class Group { constructor(...members) { this.members = members; } } let shared = new Person("Parent"); let p1 = new Person("Alpha"); let p2 = new Person("Beta"); let p3 = new Person("Gamma"); p1.parent = p2.parent = p3.parent = shared; shared = null; console.takeHeapSnapshot("before"); window.group = new Group(p1, p2, p3); setTimeout(() => { console.takeHeapSnapshot("after"); }); </script> * STEPS TO REPRODUCE 1. Inspect test page 2. Show timeline tab 3. Show JavaScript allocations Timeline 4. Reload 5. Show snapshot diff of before + after 6. Expand Objects => The Group object should transitively retain the shared "Parent" object, but it doesn't appear to.
Attachments
[PATCH] Proposed Fix (1.63 KB, patch)
2016-05-27 17:11 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-05-27 17:09:57 PDT
Joseph Pecoraro
Comment 2 2016-05-27 17:11:33 PDT
Created attachment 280013 [details] [PATCH] Proposed Fix Oops... I remember experimenting with different depths, but unintentionally it seems a fixed depth of 1-2 is what landed. We should go down as far as possible for the transitive cases.
WebKit Commit Bot
Comment 3 2016-05-27 17:43:01 PDT
Comment on attachment 280013 [details] [PATCH] Proposed Fix Clearing flags on attachment: 280013 Committed r201477: <http://trac.webkit.org/changeset/201477>
WebKit Commit Bot
Comment 4 2016-05-27 17:43:05 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.