Skip to content

Commit f007bf8

Browse files
committed
[DevTools] permanently polyfill for rAF in devtools_page (#26193)
## Summary We had this as a temporary fix for #24626. Now that Chrome team decides to turn the flag on again (with good reasons explained in https://bugs.chromium.org/p/chromium/issues/detail?id=1241986#c31), we will turn it into a long term solution. In the future, we want to explore whether we can render React elements on panel.html instead, as `requestAnimationFrame` produces higher quality animation. ## How did you test this change? Tested on local build with "Throttle non-visible cross-origin iframes" flag enabled. DiffTrain build for [ca2cf31](ca2cf31)
1 parent 56ece52 commit f007bf8

28 files changed

+42
-42
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bfb9cbd8ca2d042677056110887cc62d438f665f
1+
ca2cf319fdfcf6e5f048e082f5169bc1b849c129
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bfb9cbd8ca2d042677056110887cc62d438f665f
1+
ca2cf319fdfcf6e5f048e082f5169bc1b849c129

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-classic-bfb9cbd8c-20230223";
30+
var ReactVersion = "18.3.0-www-classic-ca2cf319f-20230223";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-modern-bfb9cbd8c-20230223";
30+
var ReactVersion = "18.3.0-www-modern-ca2cf319f-20230223";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,4 +646,4 @@ exports.useSyncExternalStore = function (
646646
);
647647
};
648648
exports.useTransition = useTransition;
649-
exports.version = "18.3.0-www-classic-bfb9cbd8c-20230223";
649+
exports.version = "18.3.0-www-classic-ca2cf319f-20230223";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,4 +638,4 @@ exports.useSyncExternalStore = function (
638638
);
639639
};
640640
exports.useTransition = useTransition;
641-
exports.version = "18.3.0-www-modern-bfb9cbd8c-20230223";
641+
exports.version = "18.3.0-www-modern-ca2cf319f-20230223";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ exports.useSyncExternalStore = function (
657657
);
658658
};
659659
exports.useTransition = useTransition;
660-
exports.version = "18.3.0-www-classic-bfb9cbd8c-20230223";
660+
exports.version = "18.3.0-www-classic-ca2cf319f-20230223";
661661

662662
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
663663
if (

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ exports.useSyncExternalStore = function (
649649
);
650650
};
651651
exports.useTransition = useTransition;
652-
exports.version = "18.3.0-www-modern-bfb9cbd8c-20230223";
652+
exports.version = "18.3.0-www-modern-ca2cf319f-20230223";
653653

654654
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
655655
if (

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-classic-bfb9cbd8c-20230223";
72+
var ReactVersion = "18.3.0-www-classic-ca2cf319f-20230223";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-modern-bfb9cbd8c-20230223";
72+
var ReactVersion = "18.3.0-www-modern-ca2cf319f-20230223";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;

compiled/facebook-www/ReactART-prod.classic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9786,7 +9786,7 @@ var slice = Array.prototype.slice,
97869786
return null;
97879787
},
97889788
bundleType: 0,
9789-
version: "18.3.0-www-classic-bfb9cbd8c-20230223",
9789+
version: "18.3.0-www-classic-ca2cf319f-20230223",
97909790
rendererPackageName: "react-art"
97919791
};
97929792
var internals$jscomp$inline_1301 = {
@@ -9817,7 +9817,7 @@ var internals$jscomp$inline_1301 = {
98179817
scheduleRoot: null,
98189818
setRefreshHandler: null,
98199819
getCurrentFiber: null,
9820-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
9820+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
98219821
};
98229822
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
98239823
var hook$jscomp$inline_1302 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactART-prod.modern.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9451,7 +9451,7 @@ var slice = Array.prototype.slice,
94519451
return null;
94529452
},
94539453
bundleType: 0,
9454-
version: "18.3.0-www-modern-bfb9cbd8c-20230223",
9454+
version: "18.3.0-www-modern-ca2cf319f-20230223",
94559455
rendererPackageName: "react-art"
94569456
};
94579457
var internals$jscomp$inline_1281 = {
@@ -9482,7 +9482,7 @@ var internals$jscomp$inline_1281 = {
94829482
scheduleRoot: null,
94839483
setRefreshHandler: null,
94849484
getCurrentFiber: null,
9485-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
9485+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
94869486
};
94879487
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
94889488
var hook$jscomp$inline_1282 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41990,7 +41990,7 @@ function createFiberRoot(
4199041990
return root;
4199141991
}
4199241992

41993-
var ReactVersion = "18.3.0-www-classic-bfb9cbd8c-20230223";
41993+
var ReactVersion = "18.3.0-www-classic-ca2cf319f-20230223";
4199441994

4199541995
function createPortal$1(
4199641996
children,

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41594,7 +41594,7 @@ function createFiberRoot(
4159441594
return root;
4159541595
}
4159641596

41597-
var ReactVersion = "18.3.0-www-modern-bfb9cbd8c-20230223";
41597+
var ReactVersion = "18.3.0-www-modern-ca2cf319f-20230223";
4159841598

4159941599
function createPortal$1(
4160041600
children,

compiled/facebook-www/ReactDOM-prod.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15455,7 +15455,7 @@ Internals.Events = [
1545515455
var devToolsConfig$jscomp$inline_1742 = {
1545615456
findFiberByHostInstance: getClosestInstanceFromNode,
1545715457
bundleType: 0,
15458-
version: "18.3.0-www-classic-bfb9cbd8c-20230223",
15458+
version: "18.3.0-www-classic-ca2cf319f-20230223",
1545915459
rendererPackageName: "react-dom"
1546015460
};
1546115461
var internals$jscomp$inline_2109 = {
@@ -15485,7 +15485,7 @@ var internals$jscomp$inline_2109 = {
1548515485
scheduleRoot: null,
1548615486
setRefreshHandler: null,
1548715487
getCurrentFiber: null,
15488-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
15488+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
1548915489
};
1549015490
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1549115491
var hook$jscomp$inline_2110 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15733,4 +15733,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
1573315733
);
1573415734
};
1573515735
exports.unstable_runWithPriority = runWithPriority;
15736-
exports.version = "18.3.0-next-bfb9cbd8c-20230223";
15736+
exports.version = "18.3.0-next-ca2cf319f-20230223";

compiled/facebook-www/ReactDOM-prod.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14984,7 +14984,7 @@ Internals.Events = [
1498414984
var devToolsConfig$jscomp$inline_1701 = {
1498514985
findFiberByHostInstance: getClosestInstanceFromNode,
1498614986
bundleType: 0,
14987-
version: "18.3.0-www-modern-bfb9cbd8c-20230223",
14987+
version: "18.3.0-www-modern-ca2cf319f-20230223",
1498814988
rendererPackageName: "react-dom"
1498914989
};
1499014990
var internals$jscomp$inline_2073 = {
@@ -15015,7 +15015,7 @@ var internals$jscomp$inline_2073 = {
1501515015
scheduleRoot: null,
1501615016
setRefreshHandler: null,
1501715017
getCurrentFiber: null,
15018-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
15018+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
1501915019
};
1502015020
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1502115021
var hook$jscomp$inline_2074 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15192,4 +15192,4 @@ exports.unstable_flushControlled = function (fn) {
1519215192
}
1519315193
};
1519415194
exports.unstable_runWithPriority = runWithPriority;
15195-
exports.version = "18.3.0-next-bfb9cbd8c-20230223";
15195+
exports.version = "18.3.0-next-ca2cf319f-20230223";

compiled/facebook-www/ReactDOM-profiling.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16225,7 +16225,7 @@ Internals.Events = [
1622516225
var devToolsConfig$jscomp$inline_1822 = {
1622616226
findFiberByHostInstance: getClosestInstanceFromNode,
1622716227
bundleType: 0,
16228-
version: "18.3.0-www-classic-bfb9cbd8c-20230223",
16228+
version: "18.3.0-www-classic-ca2cf319f-20230223",
1622916229
rendererPackageName: "react-dom"
1623016230
};
1623116231
(function (internals) {
@@ -16269,7 +16269,7 @@ var devToolsConfig$jscomp$inline_1822 = {
1626916269
scheduleRoot: null,
1627016270
setRefreshHandler: null,
1627116271
getCurrentFiber: null,
16272-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
16272+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
1627316273
});
1627416274
assign(Internals, {
1627516275
ReactBrowserEventEmitter: {
@@ -16504,7 +16504,7 @@ exports.unstable_renderSubtreeIntoContainer = function (
1650416504
);
1650516505
};
1650616506
exports.unstable_runWithPriority = runWithPriority;
16507-
exports.version = "18.3.0-next-bfb9cbd8c-20230223";
16507+
exports.version = "18.3.0-next-ca2cf319f-20230223";
1650816508

1650916509
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
1651016510
if (

compiled/facebook-www/ReactDOM-profiling.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15744,7 +15744,7 @@ Internals.Events = [
1574415744
var devToolsConfig$jscomp$inline_1781 = {
1574515745
findFiberByHostInstance: getClosestInstanceFromNode,
1574615746
bundleType: 0,
15747-
version: "18.3.0-www-modern-bfb9cbd8c-20230223",
15747+
version: "18.3.0-www-modern-ca2cf319f-20230223",
1574815748
rendererPackageName: "react-dom"
1574915749
};
1575015750
(function (internals) {
@@ -15789,7 +15789,7 @@ var devToolsConfig$jscomp$inline_1781 = {
1578915789
scheduleRoot: null,
1579015790
setRefreshHandler: null,
1579115791
getCurrentFiber: null,
15792-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
15792+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
1579315793
});
1579415794
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
1579515795
exports.createPortal = function (children, container) {
@@ -15953,7 +15953,7 @@ exports.unstable_flushControlled = function (fn) {
1595315953
}
1595415954
};
1595515955
exports.unstable_runWithPriority = runWithPriority;
15956-
exports.version = "18.3.0-next-bfb9cbd8c-20230223";
15956+
exports.version = "18.3.0-next-ca2cf319f-20230223";
1595715957

1595815958
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
1595915959
if (

compiled/facebook-www/ReactDOMServer-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "18.3.0-www-classic-bfb9cbd8c-20230223";
22+
var ReactVersion = "18.3.0-www-classic-ca2cf319f-20230223";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");

compiled/facebook-www/ReactDOMServer-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "18.3.0-www-modern-bfb9cbd8c-20230223";
22+
var ReactVersion = "18.3.0-www-modern-ca2cf319f-20230223";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");

compiled/facebook-www/ReactDOMServer-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3670,4 +3670,4 @@ exports.renderToString = function (children, options) {
36703670
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
36713671
);
36723672
};
3673-
exports.version = "18.3.0-www-classic-bfb9cbd8c-20230223";
3673+
exports.version = "18.3.0-www-classic-ca2cf319f-20230223";

compiled/facebook-www/ReactDOMServer-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3568,4 +3568,4 @@ exports.renderToString = function (children, options) {
35683568
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
35693569
);
35703570
};
3571-
exports.version = "18.3.0-www-modern-bfb9cbd8c-20230223";
3571+
exports.version = "18.3.0-www-modern-ca2cf319f-20230223";

compiled/facebook-www/ReactDOMTesting-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31227,7 +31227,7 @@ function createFiberRoot(
3122731227
return root;
3122831228
}
3122931229

31230-
var ReactVersion = "18.3.0-www-classic-bfb9cbd8c-20230223";
31230+
var ReactVersion = "18.3.0-www-classic-ca2cf319f-20230223";
3123131231

3123231232
function createPortal$1(
3123331233
children,

compiled/facebook-www/ReactDOMTesting-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37618,7 +37618,7 @@ function createFiberRoot(
3761837618
return root;
3761937619
}
3762037620

37621-
var ReactVersion = "18.3.0-www-modern-bfb9cbd8c-20230223";
37621+
var ReactVersion = "18.3.0-www-modern-ca2cf319f-20230223";
3762237622

3762337623
function createPortal$1(
3762437624
children,

compiled/facebook-www/ReactDOMTesting-prod.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11527,7 +11527,7 @@ Internals.Events = [
1152711527
var devToolsConfig$jscomp$inline_1536 = {
1152811528
findFiberByHostInstance: getClosestInstanceFromNode,
1152911529
bundleType: 0,
11530-
version: "18.3.0-www-classic-bfb9cbd8c-20230223",
11530+
version: "18.3.0-www-classic-ca2cf319f-20230223",
1153111531
rendererPackageName: "react-dom"
1153211532
};
1153311533
var internals$jscomp$inline_2059 = {
@@ -11557,7 +11557,7 @@ var internals$jscomp$inline_2059 = {
1155711557
scheduleRoot: null,
1155811558
setRefreshHandler: null,
1155911559
getCurrentFiber: null,
11560-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
11560+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
1156111561
};
1156211562
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1156311563
var hook$jscomp$inline_2060 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -14735,4 +14735,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
1473514735
);
1473614736
};
1473714737
exports.unstable_runWithPriority = runWithPriority;
14738-
exports.version = "18.3.0-next-bfb9cbd8c-20230223";
14738+
exports.version = "18.3.0-next-ca2cf319f-20230223";

compiled/facebook-www/ReactDOMTesting-prod.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13842,7 +13842,7 @@ Internals.Events = [
1384213842
var devToolsConfig$jscomp$inline_1653 = {
1384313843
findFiberByHostInstance: getClosestInstanceFromNode,
1384413844
bundleType: 0,
13845-
version: "18.3.0-www-modern-bfb9cbd8c-20230223",
13845+
version: "18.3.0-www-modern-ca2cf319f-20230223",
1384613846
rendererPackageName: "react-dom"
1384713847
};
1384813848
var internals$jscomp$inline_2033 = {
@@ -13873,7 +13873,7 @@ var internals$jscomp$inline_2033 = {
1387313873
scheduleRoot: null,
1387413874
setRefreshHandler: null,
1387513875
getCurrentFiber: null,
13876-
reconcilerVersion: "18.3.0-next-bfb9cbd8c-20230223"
13876+
reconcilerVersion: "18.3.0-next-ca2cf319f-20230223"
1387713877
};
1387813878
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1387913879
var hook$jscomp$inline_2034 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -14193,4 +14193,4 @@ exports.unstable_flushControlled = function (fn) {
1419314193
}
1419414194
};
1419514195
exports.unstable_runWithPriority = runWithPriority;
14196-
exports.version = "18.3.0-next-bfb9cbd8c-20230223";
14196+
exports.version = "18.3.0-next-ca2cf319f-20230223";

compiled/facebook-www/ReactTestRenderer-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23743,7 +23743,7 @@ function createFiberRoot(
2374323743
return root;
2374423744
}
2374523745

23746-
var ReactVersion = "18.3.0-www-classic-bfb9cbd8c-20230223";
23746+
var ReactVersion = "18.3.0-www-classic-ca2cf319f-20230223";
2374723747

2374823748
// Might add PROFILE later.
2374923749

compiled/facebook-www/ReactTestRenderer-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23743,7 +23743,7 @@ function createFiberRoot(
2374323743
return root;
2374423744
}
2374523745

23746-
var ReactVersion = "18.3.0-www-modern-bfb9cbd8c-20230223";
23746+
var ReactVersion = "18.3.0-www-modern-ca2cf319f-20230223";
2374723747

2374823748
// Might add PROFILE later.
2374923749

0 commit comments

Comments
 (0)