refactor(inspector): declare the V8 inspector's use of the browser Electron file scope (#11529)

This commit is contained in:
morluto authored and GitHub committed 2026-11-16 06:07:46 +08:00
1 parent a0e89a8970
commit 1e663371a0
3 files changed
+6 -3

No files matched your search

-1
View File
@@ -23,7 +23,6 @@
"flutter -> artifacts": 1,
"gpu -> artifacts": 2,
"il2cpp -> ghidra": 1,
"inspector -> browser": 2,
"model -> artifacts": 1,
"native -> artifacts": 2
},
+5 -1
View File
@@ -408,12 +408,16 @@ export const PROVIDER_DEPENDENCIES = Object.freeze([
"CdpEndpoint.ts",
"CdpScriptContextFacts.ts",
"CdpTargetSessionOwner.ts",
"ElectronFileScope.ts",
"protocol/CdpEvents.ts",
]),
// The V8 inspector speaks the Chrome DevTools Protocol. It reuses
// browser's CDP client (endpoint discovery, connection, target sessions
// and captured value projection) instead of keeping a second client.
reason: "the V8 inspector reuses the browser provider's CDP client",
// For Electron targets it authorizes script files inside app.asar with
// browser's Electron file scope, which owns the ASAR descriptors.
reason:
"the V8 inspector reuses the browser provider's CDP client and Electron file scope",
}),
Object.freeze({
from: "browser",
+1 -1
View File
@@ -174,7 +174,7 @@ describe("provider boundaries", () => {
providerBoundaryFacts([
edge("src/inspector/A.ts", "src/browser/CdpConnection.js"),
edge("src/inspector/A.ts", "src/browser/protocol/CdpEvents.js"),
edge("src/inspector/A.ts", "src/browser/ElectronFileScope.js"),
edge("src/inspector/A.ts", "src/browser/CdpBrowserProvider.js"),
edge("src/electron/B.ts", "src/browser/CdpConnection.js"),
]).crossProvider,
).toEqual({ "electron -> browser": 1, "inspector -> browser": 1 });