Skip to content

Commit d589d46

Browse files
committed
chore[DevTools]: make clipboardWrite optional for chromium (facebook#32262)
Addresses facebook#32244. ### Chromium We will use [chrome.permissions](https://developer.chrome.com/docs/extensions/reference/api/permissions) for checking / requesting `clipboardWrite` permission before copying something to the clipboard. ### Firefox We will keep `clipboardWrite` as a required permission, because there is no reliable and working API for requesting optional permissions for extensions that are extending browser DevTools: - `chrome.permissions` is unavailable for devtools pages - https://bugzilla.mozilla.org/show_bug.cgi?id=1796933 - You can't call `chrome.permissions.request` from background, because this instruction has to be executed inside user-event callback, basically only initiated by user. I don't really want to come up with solutions like opening a new tab with a button that user has to click. DiffTrain build for [221f300](facebook@221f300)
1 parent 2ef3590 commit d589d46

39 files changed

Lines changed: 89266 additions & 83054 deletions

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.0.0-native-fb-cae764ce-20241025
1+
19.1.0-native-fb-221f3002-20250130

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<498d9dbc40d0ff79e2b22a8a7f81acf5>>
10+
* @generated SignedSource<<0da9b5731d654f9afe19eef280c486df>>
1111
*/
1212

1313
"use strict";
@@ -23,12 +23,17 @@ __DEV__ &&
2323
_key2++
2424
)
2525
args[_key2 - 1] = arguments[_key2];
26-
_len2 = format;
27-
ReactSharedInternals.getCurrentStack &&
28-
((_key2 = ReactSharedInternals.getCurrentStack()),
29-
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
30-
args.unshift(_len2);
31-
Function.prototype.apply.call(console.error, console, args);
26+
if (enableRemoveConsolePatches) {
27+
var _console2;
28+
(_console2 = console).error.apply(_console2, [format].concat(args));
29+
} else
30+
(_len2 = format),
31+
enableRemoveConsolePatches ||
32+
(ReactSharedInternals.getCurrentStack &&
33+
((_key2 = ReactSharedInternals.getCurrentStack()),
34+
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))),
35+
args.unshift(_len2),
36+
Function.prototype.apply.call(console.error, console, args));
3237
}
3338
function testStringCoercion(value) {
3439
return "" + value;
@@ -96,6 +101,7 @@ __DEV__ &&
96101
return dispatcher;
97102
}
98103
var React = require("react"),
104+
dynamicFlagsUntyped = require("ReactNativeInternalFeatureFlags"),
99105
Internals = {
100106
d: {
101107
f: noop,
@@ -117,6 +123,8 @@ __DEV__ &&
117123
},
118124
ReactSharedInternals =
119125
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
126+
enableRemoveConsolePatches =
127+
dynamicFlagsUntyped && dynamicFlagsUntyped.enableRemoveConsolePatches,
120128
REACT_PORTAL_TYPE = Symbol.for("react.portal");
121129
("function" === typeof Map &&
122130
null != Map.prototype &&
@@ -420,5 +428,5 @@ __DEV__ &&
420428
exports.useFormStatus = function () {
421429
return resolveDispatcher().useHostTransitionStatus();
422430
};
423-
exports.version = "19.0.0-native-fb-cae764ce-20241025";
431+
exports.version = "19.1.0-native-fb-221f3002-20250130";
424432
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<17508dce41c51548f9cfa3b180365daa>>
10+
* @generated SignedSource<<d89310548305ded60b4f24cfca41d82b>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.0.0-native-fb-cae764ce-20241025";
206+
exports.version = "19.1.0-native-fb-221f3002-20250130";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<17508dce41c51548f9cfa3b180365daa>>
10+
* @generated SignedSource<<d89310548305ded60b4f24cfca41d82b>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.0.0-native-fb-cae764ce-20241025";
206+
exports.version = "19.1.0-native-fb-221f3002-20250130";

0 commit comments

Comments
 (0)