From 1825f214e1e9c733376d38b31d56477f99efa13b Mon Sep 17 00:00:00 2001 From: Sebastian Sebbie Silbermann Date: Wed, 26 Nov 2025 19:03:58 +0100 Subject: [PATCH] [devtools] Fix console links not being openable --- packages/react-devtools-extensions/src/main/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/react-devtools-extensions/src/main/index.js b/packages/react-devtools-extensions/src/main/index.js index bc948d1e6d6c9..9857659e698fc 100644 --- a/packages/react-devtools-extensions/src/main/index.js +++ b/packages/react-devtools-extensions/src/main/index.js @@ -636,6 +636,12 @@ if (chrome.devtools.panels.setOpenResourceHandler) { resource.url, lineNumber - 1, columnNumber - 1, + maybeError => { + if (maybeError && maybeError.isError) { + // Not a resource Chrome can open. Fallback to browser default behavior. + window.open(resource.url); + } + }, ); }, );