From 00f7f4a85fbf59e8c3bcbeb29a8d54f1a86e1825 Mon Sep 17 00:00:00 2001 From: Harry Zumwalt Date: Tue, 11 Apr 2023 13:42:13 -0500 Subject: [PATCH] Provide icon to edge devtools. (#26543) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Addresses #26352. This PR explicitly passes an icon to `chrome.devtools.panels.create()`, so that edge devtools will display the icon when in [Focus Mode](https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/experimental-features/focus-mode). ## How did you test this change? Passing test suite (`yarn test` & `yarn test --prod`) ✅ Passing lint (`yarn linc`) ✅ Passing type checks (`yarn flow`) ✅ **Visual Testing** Before Changes | After Changes :-------------------------:|:-------------------------: ![](https://user-images.githubusercontent.com/15645169/229591145-fe99df06-e2e3-4f21-ae31-f770d584ca6c.png) | ![](https://user-images.githubusercontent.com/15645169/229591594-26c6cbaf-f345-4367-b234-8f3c8ab3ccb1.png) --- packages/react-devtools-extensions/src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-devtools-extensions/src/main.js b/packages/react-devtools-extensions/src/main.js index 1303e2a0c132e..dd947be35564b 100644 --- a/packages/react-devtools-extensions/src/main.js +++ b/packages/react-devtools-extensions/src/main.js @@ -475,7 +475,7 @@ function createPanelIfReactLoaded() { chrome.devtools.panels.create( IS_CHROME || IS_EDGE ? '⚛️ Components' : 'Components', - '', + IS_EDGE ? 'icons/production.svg' : '', 'panel.html', extensionPanel => { extensionPanel.onShown.addListener(panel => { @@ -506,7 +506,7 @@ function createPanelIfReactLoaded() { chrome.devtools.panels.create( IS_CHROME || IS_EDGE ? '⚛️ Profiler' : 'Profiler', - '', + IS_EDGE ? 'icons/production.svg' : '', 'panel.html', extensionPanel => { extensionPanel.onShown.addListener(panel => {