I am learning about heap snapshot and while playing i came across one weird observation as attached in screenshot I see there are multiple window objects inside "Window" constructor with different @Id. I have did nothing just opened a new tab and just took a snapshot.
Asked
Active
Viewed 88 times
0
-
How many enabled chrome extensions do you have? Is this number something about 29? – 273K Feb 01 '23 at 15:14
-
no, I have just 2 extentions – Geetanshu Gulati Feb 01 '23 at 17:34
2 Answers
1
Each active Chrome extension, each frame has its own context and a global window object. Click on any Window to see native context
or __proto__
or global_proxy
. See examples:
Just walk through Window objects and you will see the details w/o having to ask questions on SO. You also will be surprised by having more than 2 extensions.

273K
- 29,503
- 10
- 41
- 64
-
I checked there are 2 window objects with different id having native context to stackovberflow.com, even i have only one tab of SF opened – Geetanshu Gulati Feb 01 '23 at 18:29
-
I am using CEF to launch my site and I there are multiple window object formated with pointing native context to themself, ... why? is this a bug with CEF ? – Geetanshu Gulati Feb 01 '23 at 18:34
-
1
-
how to identify which window object belong to which iframe, in case if there are 10's of iframe in my web page ? \ There is one "Window /" where this object points to ? like is it of iframe !! – Geetanshu Gulati Feb 01 '23 at 18:53
-
This's another question. It's better to ask a new one for make it possible to answer. – 273K Feb 01 '23 at 18:58
-
https://stackoverflow.com/questions/75315018/how-to-identify-which-window-object-is-related-to-which-iframe-in-heap-snapshot, Done can you please help me to get it clarified – Geetanshu Gulati Feb 01 '23 at 19:06