Browser.getWindowForTarget

Get the browser window that contains the devtools target.

{
  "name": "getWindowForTarget",
  "description": "Get the browser window that contains the devtools target.",
  "parameters": [
    {
      "name": "targetId",
      "$ref": "Target.TargetID",
      "description": "Devtools agent host id."
    }
  ],
  "returns": [
    {
      "name": "windowId",
      "$ref": "WindowID",
      "description": "Browser window id."
    },
    {
      "name": "bounds",
      "$ref": "Bounds",
      "description": "Bounds information of the window. When window state is 'minimized', the restored window position and size are returned."
    }
  ]
}