Bug 77414

Summary: [V8] Web Inspector: heap profile view is missing strong references from DOM nodes to listener functions
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 78411    
Attachments:
Description Flags
Test page none

Description Yury Semikhatsky 2012-01-31 01:49:03 PST
Open attachment and take a heap snapshot. Then click "Add listener" button and take another snapshot. Find 'myEventListener' function in the heap view.

Result:
According to the profiler it is only held by a global weak handle.

Expected:
Strong reference from corresponding DOM object group/DOM node to the closure object.
Comment 1 Yury Semikhatsky 2012-01-31 01:49:34 PST
Created attachment 124685 [details]
Test page
Comment 2 Yury Semikhatsky 2012-02-03 06:52:52 PST
The problem has been fixed in V8: https://code.google.com/p/v8/source/detail?r=10603