Home > Back-end >  Why there are multiple window objects in heap snapshot
Why there are multiple window objects in heap snapshot

Time:02-02

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.

  1. From where these objects are coming ? How they are created ?\
  2. Also what's difference between "Window" "Window /" constructor enter image description here

CodePudding user response:

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:

Window / stackoverflow.com

Window / chrome-extension:

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.

CodePudding user response:

  1. why there are 2 window object pointing to stackoverflow
  2. What "Window /" represents in highlighted text enter image description here
  • Related