fix[devtools/extension]: fixed duplicating panels in firefox (#27320)

Multiple `chrome.panels.create` calls result into having duplicate
panels created in Firefox, these changes fix that.

Now calling `chrome.panels.create` only if there are no panels created
yet.

DiffTrain build for commit https://github.com/facebook/react/commit/7022e8d6a3222c97d287dfa0f2361acc8a30683a.
This commit is contained in:
hoxyq
2023-08-31 17:29:44 +00:00
parent de20faf8f2
commit ae2f6ca48a
7 changed files with 9 additions and 9 deletions
@@ -23994,7 +23994,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-b70a0d702-20230831";
var ReactVersion = "18.3.0-canary-7022e8d6a-20230831";
// Might add PROFILE later.
@@ -8617,7 +8617,7 @@ var devToolsConfig$jscomp$inline_1027 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-b70a0d702-20230831",
version: "18.3.0-canary-7022e8d6a-20230831",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1226 = {
@@ -8648,7 +8648,7 @@ var internals$jscomp$inline_1226 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-b70a0d702-20230831"
reconcilerVersion: "18.3.0-canary-7022e8d6a-20230831"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1227 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9043,7 +9043,7 @@ var devToolsConfig$jscomp$inline_1069 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-b70a0d702-20230831",
version: "18.3.0-canary-7022e8d6a-20230831",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1267 = {
@@ -9074,7 +9074,7 @@ var internals$jscomp$inline_1267 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-b70a0d702-20230831"
reconcilerVersion: "18.3.0-canary-7022e8d6a-20230831"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1268 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-b70a0d702-20230831";
var ReactVersion = "18.3.0-canary-7022e8d6a-20230831";
// ATTENTION
// When adding new symbols to this file,
@@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-b70a0d702-20230831";
exports.version = "18.3.0-canary-7022e8d6a-20230831";
@@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-b70a0d702-20230831";
exports.version = "18.3.0-canary-7022e8d6a-20230831";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
b70a0d70224ceb4e277bd8ac535a2caafa5c075a
7022e8d6a3222c97d287dfa0f2361acc8a30683a