Float integrity bugfix (#27224)

Stacked on #27223

When a script resource adopts certain props from a preload for that
resource the integrity prop was incorrectly getting assinged to the
referrerPolicy prop instead. This is now fixed.

DiffTrain build for [0fb5b61ac6](https://github.com/facebook/react/commit/0fb5b61ac6951a492242618e4ace6c1826335efc)
This commit is contained in:
gnoff
2023-08-14 17:15:47 +00:00
parent 9f4e34bf23
commit d03f8fbb1b
15 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -1 +1 @@
5ea1397b2b62875dfb521cf8de0efcc15d0df797
0fb5b61ac6951a492242618e4ace6c1826335efc
+1 -1
View File
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-www-modern-2f3a20a9";
var ReactVersion = "18.3.0-www-modern-1d530573";
// ATTENTION
// When adding new symbols to this file,
+1 -1
View File
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = "18.3.0-www-modern-806e9de8";
var ReactVersion = "18.3.0-www-modern-3e4bb1ea";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -9759,7 +9759,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-modern-30fe9e24",
version: "18.3.0-www-modern-c25ea5bc",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1283 = {
@@ -9790,7 +9790,7 @@ var internals$jscomp$inline_1283 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-30fe9e24"
reconcilerVersion: "18.3.0-www-modern-c25ea5bc"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1284 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -33940,7 +33940,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-71823fba";
var ReactVersion = "18.3.0-www-classic-e1c2495a";
function createPortal$1(
children,
@@ -44162,7 +44162,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}
var tagCaches = null;
+2 -2
View File
@@ -33785,7 +33785,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-806e9de8";
var ReactVersion = "18.3.0-www-modern-3e4bb1ea";
function createPortal$1(
children,
@@ -44672,7 +44672,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}
var tagCaches = null;
@@ -15562,7 +15562,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
@@ -16574,7 +16574,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1800 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-8e3efe62",
version: "18.3.0-www-classic-ac0b40a5",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2159 = {
@@ -16604,7 +16604,7 @@ var internals$jscomp$inline_2159 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-8e3efe62"
reconcilerVersion: "18.3.0-www-classic-ac0b40a5"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2160 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16832,4 +16832,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-8e3efe62";
exports.version = "18.3.0-www-classic-ac0b40a5";
@@ -15793,7 +15793,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
@@ -16104,7 +16104,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1759 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-30fe9e24",
version: "18.3.0-www-modern-c25ea5bc",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2123 = {
@@ -16135,7 +16135,7 @@ var internals$jscomp$inline_2123 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-30fe9e24"
reconcilerVersion: "18.3.0-www-modern-c25ea5bc"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2124 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16291,4 +16291,4 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-30fe9e24";
exports.version = "18.3.0-www-modern-c25ea5bc";
@@ -16336,7 +16336,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
@@ -17348,7 +17348,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1885 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-726d746c",
version: "18.3.0-www-classic-dfca71a7",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17392,7 +17392,7 @@ var devToolsConfig$jscomp$inline_1885 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-726d746c"
reconcilerVersion: "18.3.0-www-classic-dfca71a7"
});
assign(Internals, {
ReactBrowserEventEmitter: {
@@ -17607,7 +17607,7 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-726d746c";
exports.version = "18.3.0-www-classic-dfca71a7";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -16561,7 +16561,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
@@ -16872,7 +16872,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1844 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-ef47cb47",
version: "18.3.0-www-modern-1ea20273",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -16917,7 +16917,7 @@ var devToolsConfig$jscomp$inline_1844 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-ef47cb47"
reconcilerVersion: "18.3.0-www-modern-1ea20273"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = function (children, container) {
@@ -17060,7 +17060,7 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-ef47cb47";
exports.version = "18.3.0-www-modern-1ea20273";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -34557,7 +34557,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-40f533c2";
var ReactVersion = "18.3.0-www-classic-f1396fc3";
function createPortal$1(
children,
@@ -44911,7 +44911,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}
var tagCaches = null;
@@ -34402,7 +34402,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-9b29b239";
var ReactVersion = "18.3.0-www-modern-abaab246";
function createPortal$1(
children,
@@ -45421,7 +45421,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}
var tagCaches = null;
@@ -15891,7 +15891,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
@@ -16903,7 +16903,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1829 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-1ae2a944",
version: "18.3.0-www-classic-72ab259a",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2193 = {
@@ -16933,7 +16933,7 @@ var internals$jscomp$inline_2193 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-1ae2a944"
reconcilerVersion: "18.3.0-www-classic-72ab259a"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2194 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17312,4 +17312,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-1ae2a944";
exports.version = "18.3.0-www-classic-72ab259a";
@@ -16177,7 +16177,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
@@ -16488,7 +16488,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1788 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-2f3a20a9",
version: "18.3.0-www-modern-1d530573",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2157 = {
@@ -16519,7 +16519,7 @@ var internals$jscomp$inline_2157 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-2f3a20a9"
reconcilerVersion: "18.3.0-www-modern-1d530573"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2158 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16826,4 +16826,4 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-2f3a20a9";
exports.version = "18.3.0-www-modern-1d530573";
@@ -24323,7 +24323,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-40f533c2";
var ReactVersion = "18.3.0-www-classic-f1396fc3";
// Might add PROFILE later.