From 350ad204e989a55bcf683d044ff702cbef227711 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 18 Sep 2026 10:06:01 +0000 Subject: [PATCH 1/2] Initial plan From 7dd194772e460e48ad0bb16bcd2fddb8c08b92f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 18 Sep 2026 10:09:05 +0000 Subject: [PATCH 2/2] fix: ignore null CRI teardown frames Co-authored-by: cderv <6791940+cderv@users.noreply.github.com> --- src/core/cri/deno-cri/chrome.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/cri/deno-cri/chrome.js b/src/core/cri/deno-cri/chrome.js index 9d9362b886c..d69d69e3fec 100644 --- a/src/core/cri/deno-cri/chrome.js +++ b/src/core/cri/deno-cri/chrome.js @@ -286,6 +286,10 @@ export default class Chrome extends EventEmitter { // handle the messages read from the WebSocket _handleMessage(message) { + // a dropped connection can deliver a null/empty frame; ignore it + if (!message || typeof message !== "object") { + return; + } // command response if (message.id) { const callback = this._callbacks[message.id];