//content/browser/devtools/ (along with content::DevToolsAgentHostClient in //content/public/browser/) implements the unsandboxed Browser-process Chrome DevTools Protocol (CDP) target, session, and domain host. It defends against compromised web and worker renderers and inherits Content Security Guidance, the CDP Security Framework, and Security for Agents.
chrome.debugger extensions) cannot attach to the browser-wide target, receive only allowlisted domains, and remain gated across attachment, navigations, and domain commands by DevToolsAgentHostClient target-URL, frame, local-file, navigation-initiator, and unsafe-operation capability checks, preserving StoragePartition and BrowserContext isolation.sessionId, and notification-id validation, validates child-target registrations and URLs, and terminates renderers sending inconsistent protocol or target messages.StoragePartition (including scoped raw-header access while attached) by trusted CDP clients; a compromised renderer spoofing its own target's telemetry or causing clean OOM/hangs in devtools:// without memory corruption or session smuggling; and permissive virtual defaults on base DevToolsAgentHostClient intended for trusted in-process callers.