关于browserRuntimeManager.js的四项改动 - #455
Merged
Merged
Conversation
Chrome for Testing 在部分 Linux 显卡/容器环境下启动即崩 "GPU process isn't usable. Goodbye.",仅 --disable-gpu 不足以兜底。 新增 VCP_BROWSER_DISABLE_GPU 环境变量(默认 false,不影响他人), 开启后追加 --disable-gpu --disable-gpu-compositing --in-process-gpu 三件套,并在 status 中透出 disableGpu 状态便于排障。
新版 Chrome (137+) 默认拒绝加载 unpacked 扩展,导致 VCPChrome 扩展无法注入。在 load-extension 分支追加 --enable-unsafe-extension-debugging 恢复未打包扩展加载能力。
启动前先探测已存在的 managed Chrome 进程(allowUnownedProcess), 命中则直接接管返回 reusedExistingProcess,避免重复拉起浏览器。 readDevToolsActivePort/getManagedBrowserWebSocketEndpoint 参数化 (profileDir/attempts),端点获取改用官方 /json/version 的 webSocketDebuggerUrl,并新增 waitForManagedBrowserWebSocketEndpoint 轮询等待(10s),提升启动可靠性。
managed Chrome 启动/退出日志原走 console.log(stdout),会混入 同步执行插件的返回体,被 VCP 核心层误判为错误回执。 两处改为 console.error(stderr),运维仍可见,stdout 净空。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.