Bug 77414 - [V8] Web Inspector: heap profile view is missing strong references from DOM nodes to listener functions
Summary: [V8] Web Inspector: heap profile view is missing strong references from DOM n...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 78411
  Show dependency treegraph
 
Reported: 2012-01-31 01:49 PST by Yury Semikhatsky
Modified: 2012-02-11 01:26 PST (History)
10 users (show)

See Also:


Attachments
Test page (225 bytes, text/html)
2012-01-31 01:49 PST, Yury Semikhatsky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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